Header: Dir Entry
This is the predefined structure for each directory entry. Once you reach the beginning of that cluster,fread
the size of the structure, and you can get all the parameters in the variables respectively.
Attributes
In the structure, we can locate 1 byte of data storing the attribute of the file. Actually this tells us a lot:
Bit
Mask
Description
0
0x01
Read-Only
1
0x02
Hidden
2
0x04
System Files
3
0x08
Volume Label
4
0x10
Subdirectory
5
0x20
Archive
6
0x40
Device
7
0x80
Reserved
8
0x0F
Long File Name (LFN)
In C programming, we can apply bitwise AND (&) to check a particular attribute, e.g.,
Last updated
Was this helpful?