GetFileAttr function (LotusScript® Language)
Retrievesfile-system attributes of a file or directory.
Syntax
GetFileAttr ( fileName )
GetAttr is acceptable in place of GetFileAttr.
Elements
fileName
The name of a file or directory. File and directory names can optionally include paths.
Return value
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 |
Usage
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.