|
HPGCC3 Documentation 3.0 R003
|
The KOS File info structure. More...
#include <kos.h>
Data Fields | |
| KDATETIME | last_modifier |
| KDATETIME | create_date |
| KDATE | last_access_date |
| BYTE | file_name [13] |
| The full filename, including the "." extension. | |
| U8 | attribute |
| Attributes. | |
| U16 | ext_attr |
| Extended attribute. | |
| U32 | size |
| Exact size in bytes. | |
Attributes.
from: http://alumnus.caltech.edu/~pje/dosfiles.html
The bits in the attribute byte determine the type of entry as follows (bit 7 is the most significant bit):
bit meaning if bit = 1
--- ---------------------------------------
7 unused
6 unused
5 file has been changed since last backup (=archive file)
4 entry represents a subdirectory
3 entry represents a volume label
2 system file
1 hidden file
0 read-only
If the entry represents a subdirectory, bit 4 is set and all other bits are unused. If the entry represents a volume label, bit 3 is set and other bits are unused.
Since DOS file names are case-insensitive, the file name and extension contain no lower-case (small) letters. They are always converted to the corresponding capital letters before writing them to the disk. What DOS will do if it finds small letters in a file name or extension in a directory entry is undefined.