The FILINFO structure holds information about the object returned by f_readdir, f_findfirst, f_findnext and f_stat function. Be careful in the size of structure when LFN is enabled.
typedef struct { FSIZE_t fsize; /* File size */ WORD fdate; /* Last modified date */ WORD ftime; /* Last modified time */ BYTE fattrib; /* Attribute */ #if FF_USE_LFN TCHAR altname[FF_SFN_BUF + 1]; /* Alternative object name */ TCHAR fname[FF_LFN_BUF + 1]; /* Primary object name */ #else TCHAR fname[12 + 1]; /* Object name */ #endif } FILINFO;
Flag | Meaning |
---|---|
AM_RDO | Read-only. Write mode open and deleting is rejected. |
AM_HID | Hidden. Should not be shown in normal directory listing. |
AM_SYS | System. Used by system and should not be accessed. |
AM_ARC | Archive. Set on new creation or any modification to the file. |
AM_DIR | Directory. This is not a file but a sub-directory container. |