LOTUSSCRIPT LANGUAGE


GetFileAttr function
Example

Retrieves file-system attributes of a file or directory.

Syntax

GetFileAttr ( fileName )

GetAttr is acceptable in place of GetFileAttr.

Elements

fileName


Return value

The return value is the sum of the Integer values in the following list for those attributes that apply to fileName:

ValueAttributeConstant
0 Normal fileATTR_NORMAL
1 Read-only fileATTR_READONLY
2 Hidden fileATTR_HIDDEN
4 System fileATTR_SYSTEM
16 DirectoryATTR_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.

Example
See Also