directoryEntry Struct Reference

FAT short directory entry. More...

#include <Fat16structs.h>

List of all members.

Public Attributes

uint8_t name [11]
uint8_t attributes
uint8_t reservedNT
uint8_t creationTimeTenths
uint16_t creationTime
uint16_t creationDate
uint16_t lastAccessDate
uint16_t firstClusterHigh
uint16_t lastWriteTime
uint16_t lastWriteDate
uint16_t firstClusterLow
uint32_t fileSize


Detailed Description

FAT short directory entry.

Short means short 8.3 name, not the entry size.


Member Data Documentation

uint8_t directoryEntry::name[11]

Short 8.3 name. The first eight bytes contain the file name with blank fill. The last three bytes contain the file extension with blank fill.

Entry attributes.

The upper two bits of the attribute byte are reserved and should always be set to 0 when a file is created and never modified or looked at after that. See defines that begin with DIR_ATT_.

Reserved for use by Windows NT. Set value to 0 when a file is created and never modify or look at it after that.

The granularity of the seconds part of creationTime is 2 seconds so this field is a count of tenths of a second and its valid value range is 0-199 inclusive.

Time file was created.

Date file was created.

Last access date. Note that there is no last access time, only a date. This is the date of last read or write. In the case of a write, this should be set to the same date as lastWriteDate.

High word of this entry’s first cluster number (always 0 for a FAT12 or FAT16 volume).

Time of last write. File creation is considered a write.

Date of last write. File creation is considered a write.

Low word of this entry’s first cluster number.

32-bit unsigned holding this file’s size in bytes.


The documentation for this struct was generated from the following file:

Generated on Thu Oct 9 08:22:19 2008 for Fat16 by  doxygen 1.5.6