Skip to content

ExcludeTrailingBackslash

Strip trailing directory separator from a pathname, if needed.

Declaration

Source position: finah.inc line 38

function ExcludeTrailingBackslash(const Path: UnicodeString)
                                  : UnicodeString;
function ExcludeTrailingBackslash(const Path: RawByteString)
                                  : RawByteString;

Description

ExcludeTrailingBackslash is provided for backwards compatibility with Delphi. Use ExcludeTrailingPathDelimiter instead.

See also

Name Description
IncludeTrailingPathDelimiter Add trailing directory separator to a pathname, if needed.
ExcludeTrailingPathDelimiter Strip trailing directory separator from a pathname, if needed.
PathDelim Path (directory) delimiter.
IsPathDelimiter Is the character at the given position a pathdelimiter ?