JCL Help:PathAddSeparator

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Forces the string to end with a directory separator.


Pascal

 function PathAddSeparator(const Path: string): string;


Parameters

Parameters Description
const Path: string A string that represents a path and which should be forced to end with a directory separator.


Return Value

The resulting string is the path, ending in a directory separator.


Description

Adds a path directory separator to the end of the string to create the correct syntax for a path. If the string already has a trailing separator, no separator will be added. Note that on Windows a separator is a backslash while on Linux it's a forward slash, this is handled correctly by this function.


See Also

PathRemoveSeparator


About

Unit

JclFileUtils


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page