Sign in Join
FPDoc Onlineexperiment

IncludeTrailingPathDelimiter function

In unit sysutils

Add trailing directory separator to a pathname, if needed.

Declaration

pascal
function IncludeTrailingPathDelimiter(const Path: UnicodeString)
: UnicodeString

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.