FatFs - FILINFO

## FILINFO

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 _USE_LFN != 0
        TCHAR   altname[13];         /* Alternative object name */
        TCHAR   fname[_MAX_LFN + 1]; /* Primary object name */
    #else
        TCHAR   fname[13];           /* Object name */
    #endif
    } FILINFO;

#### Members

fsize
  Indicates size of the file in unit of byte. `FSIZE_t` is an alias of integer type either `DWORD`(32-bit) or `QWORD`(64-bit) depends on the configuration option `_FS_EXFAT`. Do not care when the item is a directory.
fdate
  Indicates the date when the file was modified or the directory was created.
  bit15:9
    Year origin from 1980 (0..127)
  bit8:5
    Month (1..12)
  bit4:0
    Day (1..31)
ftime
  Indicates the time when the file was modified or the directory was created.
  bit15:11
    Hour (0..23)
  bit10:5
    Minute (0..59)
  bit4:0
    Second / 2 (0..29)
fattrib
  Indicates the file/directory attribute in combination of `AM_DIR`, `AM_RDO`, `AM_HID`, `AM_SYS` and `AM_ARC`.
fname[]
  The null-terminated object name is stored. A null string is stored when no item to read and it indicates this structure is invalid.
altname[]
  Alternative object name is stored if available. This member is not available at non-LFN configuration.

Return