X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/70702af1370e44e32fb2c3c507e4759a187b4fe5:/fatfs/doc/en/sfileinfo.html..289f6a146c0b2087607d8d8659531ea90142779a:/fatfs/documents/doc/sfileinfo.html diff --git a/fatfs/doc/en/sfileinfo.html b/fatfs/documents/doc/sfileinfo.html similarity index 61% rename from fatfs/doc/en/sfileinfo.html rename to fatfs/documents/doc/sfileinfo.html index 6dae1fe..b4c9063 100644 --- a/fatfs/doc/en/sfileinfo.html +++ b/fatfs/documents/doc/sfileinfo.html @@ -1,7 +1,7 @@
- + @@ -13,18 +13,18 @@The FILINFO structure holds information about the object returned by f_readdir, f_findfirst, f_findnext and f_stat function.
+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 */ +#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[13]; /* Object name */ + TCHAR fname[12 + 1]; /* Object name */ #endif } FILINFO;@@ -33,7 +33,7 @@
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. |