---
url: /flow/guide/scripting-reference/functions/file/includetrailingpathdelimiter.md
---

# IncludeTrailingPathDelimiter

## Declaration

`Function IncludeTrailingPathDelimiter( const S : string) : string`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := IncludeTrailingPathDelimiter('c:\test'); //returns 'c:\test\'
end;
```

## Description

Returns the file path with a path delimiter on the end. If the file path already has a delimiter on the end it will not add another.
