IncludeTrailingPathDelimiter

Add trailing directory separator to a pathname, if needed.

Declaration

Source position: finah.inc line 34

  function IncludeTrailingPathDelimiter(const Path: UNICODESTRING)
                                        : UNICODESTRING;
  function IncludeTrailingPathDelimiter(const Path: RAWBYTESTRING)
                                        : RAWBYTESTRING;

Description

IncludeTrailingPathDelimiter adds a trailing path delimiter character (PathDelim ) to Path if none is present yet, and returns the result.

If Path is empty, a path delimiter is returned, for Delphi compatibility.

See also

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

results matching ""

    No results matching ""