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

FileIsExecutable

Determine if the specified file name is executable

Declaration

Source position: lazfileutils.pas line 50

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 enviroment, the value fromFileExistsUTF8 is used as the return value. In short, the function is not really useful in a Windows environment.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.