Nine, head record structure
Directory where the sector, with 32 Bytes are divided into one unit, each unit is called a directory entry (Directory Entry), that is, the length of each directory entry is 32 Bytes.
Short said the definition of FAT32 file directory entry 32 bytes
Name
|
Byte offset
|
Byte count
|
|
|
|
Definitions
|
|
DIR_Name
|
0x0~0xA
|
11
|
|
|
|
File Name
|
|
|
|
|
|
|
|
|
|
00000000 (reading and writing)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00000001 (Read Only)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00000010 (hide)
|
|
|
|
|
|
|
|
|
|
|
|
|
DIR_Attr
|
0xB
|
1
|
|
|
Property
|
|
00000100 (System)
|
|
|
|
Byte
|
|
00001000 (label)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00010000 (subdirectories)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00100000 (archive)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00001111 (long file names)
|
|
|
|
|
|
|
|
|
|
|
|
|
DIR_NTRes
|
0xC
|
1
|
|
|
|
|
Reserved
|
|
DIR_CrtTimeTenth
|
0xD
|
1
|
|
|
Creation time of 10 milliseconds bit
|
|
DIR_CrtTime
|
0xE~0xF
|
2
|
|
|
|
|
File creation time
|
|
DIR_CrtDate
|
0x10~0x11
|
2
|
|
|
|
|
File creation date
|
|
DIR_LstAccDate
|
0x12~0x13
|
2
|
|
|
|
File last access date
|
|
DIR_FstClusHI
|
0x14~0x15
|
2
|
|
|
File starting cluster number of 16 high
|
|
DIR_WrtTime
|
0x16~0x17
|
2
|
|
|
Recent file modification time
|
|
DIR_WrtDate
|
0x18~0x19
|
2
|
|
|
Last modified date of the file
|
|
DIR_FstClusLO
|
0x1A~0x1B
|
2
|
|
|
Low document starting cluster number 16
|
|
A dır_filesiz
|
0x1C~0x1F
|
4
|
|
|
|
|
Length indicates the file
|
|
|
|
|
|
|
|
|
|
Said the definition of FAT16 directory entry 32 bytes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Byte offset
|
Byte count
|
|
|
|
Definitions
|
|
|
|
|
(16 hex)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0x0~0x7
|
8
|
|
|
File Name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0x8~0xA
|
3
|
|
|
Extension
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00000000 (reading and writing)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00000001 (Read Only)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Property
|
|
00000010 (hide)
|
|
|
|
0xB
|
1
|
|
|
|
|
|
|
|
|
|
00000100 (System)
|
|
|
|
Byte
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00001000 (label)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00010000 (subdirectories)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00100000 (archive)
|
|
|
|
|
|
|
|
|
|
|
|
0xC~0x15
|
10
|
|
|
Reserved
|
|
|
|
|
|
|
|
|
|
0x16~0x17
|
2
|
Recent file modification time
|
|
|
|
|
|
|
|
|
|
0x18~0x19
|
2
|
Last modified date of the file
|
|
|
|
|
|
|
|
|
|
0x1A~0x1B
|
2
|
Said first cluster file
|
|
|
|
|
|
|
|
|
|
|
0x1C~0x1F
|
4
|
|
Length indicates the file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date format:
• Bits 0-4: Date, valid values are 1-31.
• Bits 5-8: In March, the effective value of 1-12.
|