Sign in Join
FPDoc Onlineexperiment

FilenameIsUnixAbsolute function

In unit LazFileUtils

Determines if the specified value is an absolute file path (not a relative one).

Declaration

pascal
function FilenameIsUnixAbsolute(const TheFilename: string): Boolean

Arguments

TheFilename

Path and file name to use in the function.

Function result

True when the file name is not a relative path.

Description

FilenameIsUnixAbsolute is a Boolean function used to determine if the value in TheFilename contains an absolute file path (and not a relative one).

In UNIX-like environments, the FilenameIsUnixAbsolute function is used in the implementation of FilenameIsAbsolute. The return value is False if TheFilename is an empty string (''), or does not start with the directory separator for the environment.

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