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

---
```ts
ensureTrailingDirectorySeparator(path): string
```

## Parameters

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

## Returns

`string`
