GetDiskFileProperties (open)

Read the properties of a file on disk

Syntax

LOADLIB "wh::files.whlib";

RECORD FUNCTION GetDiskFileProperties(STRING filename)

Parameters

STRING filename

The file to analyze.

Return value

RECORD

a record containing information about the file

DATETIME modified

Last modification time

STRING name

Name of the file

INTEGER size

Size of the file, in bytes

INTEGER64 size64

Size of the file, in bytes

INTEGER type

0=file, 1=directory

INTEGER unixpermissions

Unix file permissions.

Description

Read a file's properties and return information about this file.