X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/70702af1370e44e32fb2c3c507e4759a187b4fe5..289f6a146c0b2087607d8d8659531ea90142779a:/fatfs/documents/doc/sfileinfo.html diff --git a/fatfs/documents/doc/sfileinfo.html b/fatfs/documents/doc/sfileinfo.html new file mode 100644 index 0000000..b4c9063 --- /dev/null +++ b/fatfs/documents/doc/sfileinfo.html @@ -0,0 +1,78 @@ + + +
+ + + + + +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. |