GetFileAttribs
(Engine-Level Function)
| Description: | Returns information about the specified file. |
| Returns: | Numeric |
Usage: ![]() |
Script only. |
| Function Groups: | File I/O |
| Related to: | SetFileAttribs |FileFind | Dir |
Format: ![]() |
GetFileAttribs(FileName[, Mode] ) |
| Parameters: |
| FileName | |||||||||||||||||||||||||||||||||||||||||||
| Required. Any text expression giving the name of the file. A known path Known Path Aliases for File-Related Functions may be provided in the form, :{KnownPathAlias}. | |||||||||||||||||||||||||||||||||||||||||||
| Mode | |||||||||||||||||||||||||||||||||||||||||||
|
Optional numeric value that controls what information is returned by this function. Defaults to 0 if missing or invalid. (See: Bitwise Parameters & Operations)
|
| Comments: | The return value will vary according to Mode. See tables above. |
This function is session non-aware, meaning it works on the server's file system even with an active remote connection established. This function is also blocking, all concurrent thread operations will be paused until its execution has concluded.
Example:
If StrictlyNotEqual(NewFile, OldFile);
[
Attribs = GetFileAttribs(Concat(MyPath, NewFile));
OldFile = NewFile;
]
The above statement will cause Attribs to be set to the file attribute value of NewFile every time its name changes.
