[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

FilenameIsUnixAbsolute

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

Declaration

Source position: lazfileutils.pas line 47

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.


Version 3.2 Generated 2024-02-25 Home