---
jsApi: true
title: "[F] hasTrailingDirectorySeparator"

---
```ts
hasTrailingDirectorySeparator(path): boolean
```

Determines whether a path has a trailing separator (`/` or `\\`).

## Parameters

| Parameter | Type |
| :------ | :------ |
| `path` | `string` |

## Returns

`boolean`
