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 {
 
#ifdef FF_UNICODE_SUPPORT
        FF_T_WCHAR      FileName[FF_MAX_FILENAME];    ///< UTF-16 (Unicode version).
#else   
        FF_T_INT8       FileName[FF_MAX_FILENAME];
#endif  
	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
 
#if defined(FF_LFN_SUPPORT) && defined(FF_INCLUDE_SHORT_NAME)
        FF_T_INT8       ShortName[13];               ///< Provides the ShortName of the file, when using LFN's.
#endif 
 
} FF_DIRENT;
Personal tools