Retrievesfile-system attributes of a file or directory.
GetFileAttr ( fileName )
GetAttr is acceptable in place of GetFileAttr.
fileName
The name of a file or directory. File and directory names can optionally include paths.
The return value is the sum of the Integer values in the following list for those attributes that apply to fileName:
Value |
Attribute |
Constant |
---|---|---|
0 |
Normal file |
ATTR_NORMAL |
1 |
Read-only file |
ATTR_READONLY |
2 |
Hidden file |
ATTR_HIDDEN |
4 |
System file |
ATTR_SYSTEM |
16 |
Directory |
ATTR_DIRECTORY |
32 |
File that has changed since it was last backed up (archived) |
ATTR_ARCHIVE |
The constants in the preceding list are defined in the file lsconst.lss. Including this file in your script allows you to use constant names instead of their numeric values.