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

FileIsExecutable

Determines if the specified file name is executable.

Declaration

Source position: lazfileutils.pas line 51

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.


Version 3.2 Generated 2024-02-25 Home