Sign in Join
FPDoc Onlineexperiment

FileIsExecutable function

In unit LazFileUtils

Determines if the specified file name is executable.

Declaration

pascal
function FileIsExecutable(const AFilename: string): Boolean

Arguments

AFilename

File name to examine.

Function result

True if the file is executable on the platform or OS.

Description

FileIsExecutable is a Boolean function used to determine if the specified file name is executable. For UNIX-like environments, a combination of FpStat, FPS_ISREG, and FpAccess are used to get the return value. For the Windows environment, the value from FileExistsUTF8 is used as the return value. In short, the function is not really useful in a Windows environment.

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