GetDiskFileProperties (open)
Read the properties of a file on disk
Syntax
LOADLIB "wh::files.whlib";
RECORD FUNCTION GetDiskFileProperties(STRING filename)Parameters
STRING filenameThe file to analyze.
Return value
RECORDa record containing information about the file
DATETIME modifiedLast modification time
STRING nameName of the file
INTEGER sizeSize of the file, in bytes
INTEGER64 size64Size of the file, in bytes
INTEGER type0=file, 1=directory
INTEGER unixpermissionsUnix file permissions.
Description
Read a file's properties and return information about this file.