[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Gets descriptive information for the specified file name.
Source position: lazfileutils.pas line 136
function GetFileDescription( |
const AFilename: string |
):string; |
AFilename |
|
File name examined in the function. |
String with the file information for the platform or OS.
GetFileDescription is a String function used to get descriptive information for the file name specified in AFilename. The return value contains file information appropriate to the platform, environment, or file system. The implementation of GetFileDescription and the content of the return value are platform- or OS-specific.
For UNIX-like environments, the return value can contain information that indicates the permissions for the user, group, and owner of the file as returned from the FPStat routine. It also includes the file user and group IDs, file size, and modification timestamp. For example:
ld-rwxrwxrwx Owner: UID.GID Size: 99999 Modified: MM/DD/YYYY hh:nn
For the Amiga platform, the content in the return value is derived using a TFileInfoBlock for a shared lock on the file. The return value can be an empty string if the file could not be locked using a shared lock on the file system. It can contain values like the following:
asperwd
For Windows platforms, the return value contains only the modification date / time for the file using the format:
Modified: MM/DD/YYYY hh:mm
The return value can be 'Modified: ?' if an exception is encountered when getting the date/time value for the file.
Version 3.2 | Generated 2024-02-25 | Home |