FF_DIRENT

From FullFAT

Jump to: navigation, search

A structure defined to describe a directory entry. Data is stored in an FF_DIRENT structure by the directory traversal API functions:

Structure Definition

Note some members of the structure have not been documented here, as they should not be touched by application level code.

typedef struct {
	FF_T_INT8	FileName[FF_MAX_FILENAME];
	FF_T_UINT8	Attrib;
	FF_T_UINT32 	Filesize;
	FF_T_UINT32	ObjectCluster;
 
#ifdef FF_TIME_SUPPORT	
	FF_SYSTEMTIME	CreateTime;	///< Date and Time Created.
	FF_SYSTEMTIME	ModifiedTime;	///< Date and Time Modified.
	FF_SYSTEMTIME	AccessedTime;	///< Date of Last Access.
#endif
} FF_DIRENT;

FUTURE WARNING

This structure will remain un-encapsulated until atleast version 1.1 of FullFAT. After this point code that accesses these structures may break, FullFAT will encapsulate the object and provide some methods to access the items.

This will force good coding practices, and continue our values of using object-oriented C.

Personal tools