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 @@

FILINFO

-

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 @@

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.
+
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 FF_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.
@@ -57,9 +57,18 @@
fattrib
-
Indicates the file/directory attribute in combination of AM_DIR, AM_RDO, AM_HID, AM_SYS and AM_ARC.
+
Indicates the attribute flags in combination of:
+ + + + + + + +
FlagMeaning
AM_RDORead-only. Write mode open and deleting is rejected.
AM_HIDHidden. Should not be shown in normal directory listing.
AM_SYSSystem. Used by system and should not be accessed.
AM_ARCArchive. Set on new creation or any modification to the file.
AM_DIRDirectory. This is not a file but a sub-directory container.
+
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.
+
The null-terminated object name is stored. A null string is stored when no item to read and it indicates this structure is invalid. The size of fname[] and altname[] each can be configured at LFN configuration.
altname[]
Alternative object name is stored if available. This member is not available at non-LFN configuration.