hollyhock
Loading...
Searching...
No Matches
File_Stat Struct Reference

#include <file.h>

Public Attributes

uint32_t attributes
 FAT attributes; bit 0x10 identifies a directory.
uint32_t fileSize
uint16_t creationDate
uint16_t creationTime
uint16_t lastModifiedDate
uint16_t lastModifiedTime
uint16_t unknown2
uint16_t lastAccessedDate

Detailed Description

Information about a file as retrieved from File_Fstat or File_Stat.

Dates and times are stored as a bitfield. The values they represent can be accessed using the File_StatDateYear, File_StatDateMonth, File_StatDateDay, File_StatTimeHour, File_StatTimeMinute, and File_StatTimeSecond helper functions.

Dates are stored in the following format:

Bit1514131211109876543210
ValueYear - 1980Month (indexed from 1)Day (indexed from 1)

Times are stored in the following format:

Bit1514131211109876543210
ValueHourMinuteSecond (divided by two, rounded down)

Member Data Documentation

◆ creationDate

uint16_t File_Stat::creationDate

The creation date of the file. For information on the storage format, see struct stat.

◆ creationTime

uint16_t File_Stat::creationTime

The creation time of the file. For information on the storage format, see struct stat.

◆ fileSize

uint32_t File_Stat::fileSize

The size of the file, in bytes.

◆ lastAccessedDate

uint16_t File_Stat::lastAccessedDate

The date the file was last accessed. For information on the storage format, see struct stat.

◆ lastModifiedDate

uint16_t File_Stat::lastModifiedDate

The date the file was last modified. For information on the storage format, see struct stat.

◆ lastModifiedTime

uint16_t File_Stat::lastModifiedTime

The time the file was last modified. For information on the storage format, see struct stat.


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