Ensures path name ends with delimiter.
function IncludeTrailingPathDelimiter(const S: string): string; overload;
AnsiString IncludeTrailingPathDelimiter(const AnsiString S);
IncludeTrailingPathDelimiter ensures that a path name ends with a trailing path delimiter ('\" on Windows, '/' on Linux). If S already ends with a trailing delimiter character, it is returned unchanged; otherwise S with appended delimiter character is returned.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!