Icon FileAttr

Unit: Internal

Available In: Server Applications

function FileAttr(const FileName: String): Integer

The FileAttr function returns the set of all attributes of the file input parameter. The file attributes are operating system-specific, so please refer to the documentation for the operating system in use with the web server for more information on how to interpret the returned file attributes. The return value is an Integer value.

Information The specified file name should contain an absolute path. Relative paths are permitted, but they rely on the current working directory. The current working directory is a per-process setting and is not reliable in a multi-threaded setting like the web server.

Examples

X := FileAttr('C:\temp\test.html');  // X is 32
Image