On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTFiles-32 Programming Manual
RTFiles-32 Reference Manual
Introduction
General File I/O
Information about Files
File Attributes
Function RTFGetAttributes
Function RTFSetAttributes
Directories
Finding Files
File Name Operations
Disk and Volume Management
Miscellaneous File Functions
Raw I/O Functions
Functions for Debugging
Device Dependent Functions
Obsolete Functions
Disk Device Driver API
MTD Device Driver API
RTFiles-32 Error Codes
Code Page Reference
RTIP-32
RTPEG-32
RTUSB-32
|
Function RTFGetAttributes
RTFGetAttributes returns the attributes set for a specific file:
int RTFGetAttributes(const char * FileName);
ParametersFileNameThe name of the file for which to retrieve the attributes.
return valueIf the function return value is positive, it contains the file's attributes, which can be any combination of the following values:
Value |
Meaning |
RTF_ATTR_READ_ONLY |
The file is read only. Any attempt to open it with read/write access will return error "access denied". |
RTF_ATTR_HIDDEN |
The file is marked as hidden. This attribute has no effect on any RTFiles-32 function. |
RTF_ATTR_SYSTEM |
The file is marked as being a system file. This attribute has no effect on any RTFiles-32 function. |
RTF_ATTR_VOLUME |
The file is a volume label. Only a directory entry in the root directory can have this attribute set. |
RTF_ATTR_DIR |
The file is a directory. |
RTF_ATTR_ARCHIVE |
The file is marked to be backed up. This attribute has no effect on any RTFiles-32 function, but it is set on every write operation. |
RTF_ATTR_CONTIG |
The attribute is only supported on exFAT and ISO 9660 volumes and indicates that the file consists of a single contiguous chain of clusters. |
If the function fails, the return value is a negative error code.
File Attributes
Function RTFSetAttributes
|