[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Examines the specified file to see if it is executable.
Source position: lazfileutils.pas line 49
procedure CheckIfFileIsExecutable( |
const AFilename: string |
); |
AFilename |
|
File name to examine. |
CheckIfFileIsExecutable is a procedure used to examine the specified file name to see if it is executable. CheckIfFileIsExecutable is implemented for UNIX-like environments, and allows a process to better determine if the file can be executed on the platform or OS, and to get better error messages when it cannot.
CheckIfFileIsExecutable raises an exception with a specific message when the platform or OS facilities indicate it is necessary.
Use FileIsExecutable to determine of a file is executable without raising an exception.
The Exception contains the following messages (from string resources):
Version 3.2 | Generated 2024-02-25 | Home |