Function SetFattr() Foundation

Sets file attributes.

Syntax
SetFattr( <cFileName>        , ;
          [<nFileAttributes>]  ;  // Default: FA_ARCHIVE
        ) --> nErrorCode
Parameters
<cFileName>
This is a string containing the name of the file.
<nFileAttributes>
File attributes are numeric values corresponding to #define constants found in XBTDISK.CH
FA_NORMAL
FA_READONLY
FA_HIDDEN
FA_SYSTEM
FA_DIRECTORY
FA_ARCHIVE
To set multiple attributes the constants must be added.
Return

Possible return values correspond to #define constants found in XBTSYS.CH

Return values of SetFattr()
Constant Description
NO_DISK_ERR File attribute was set successfully
ER_FILE_NOT_FOUND File not found
ER_PATH_NOT_FOUND Invalid path was specified
ER_ACCESS_DENIED Access denied

Description

Sets file attributes.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.