1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
6 <link rel=
"up" title=
"FatFs" href=
"../00index_e.html">
7 <link rel=
"alternate" hreflang=
"ja" title=
"Japanese" href=
"../ja/sfileinfo.html">
8 <link rel=
"stylesheet" href=
"../css_e.css" type=
"text/css" media=
"screen" title=
"ELM Default">
9 <title>FatFs - FILINFO
</title>
16 <p>The
<tt>FILINFO
</tt> structure holds a file information returned by
<tt>f_readdir()
</tt> and
<tt>f_stat()
</tt> function.
</p>
18 <span class=
"k">typedef struct
</span> {
19 DWORD fsize;
<span class=
"c">/* File size */
</span>
20 WORD fdate;
<span class=
"c">/* Last modified date */
</span>
21 WORD ftime;
<span class=
"c">/* Last modified time */
</span>
22 BYTE fattrib;
<span class=
"c">/* Attribute */
</span>
23 TCHAR fname[
13];
<span class=
"c">/* Short file name (
8.3 format) */
</span>
24 <span class=
"k">#if
</span> _USE_LFN
25 TCHAR* lfname;
<span class=
"c">/* Pointer to the LFN buffer */
</span>
26 int lfsize;
<span class=
"c">/* Size of the LFN buffer in unit of TCHAR */
</span>
27 <span class=
"k">#endif
</span>
35 <dd>Indicates size of the file in unit of byte. Always zero for directories.
</dd>
37 <dd>Indicates the date that the file was modified or the directory was created.
<br>
40 <dd>Year origin from
1980 (
0.
.127)
</dd>
42 <dd>Month (
1.
.12)
</dd>
48 <dd>Indicates the time that the file was modified or the directory was created.
<br>
53 <dd>Minute (
0.
.59)
</dd>
55 <dd>Second /
2 (
0.
.29)
</dd>
59 <dd>Indicates the file/directory attribute in combination of
<tt>AM_DIR
</tt>,
<tt>AM_RDO
</tt>,
<tt>AM_HID
</tt>,
<tt>AM_SYS
</tt> and
<tt>AM_ARC
</tt>.
</dd>
61 <dd>Indicates the file/directory name in
8.3 format null-terminated string. It is always returnd with upper case in non-LFN configuration but it can be returned with lower case in LFN configuration.
</dd>
63 <dd>Pointer to the LFN buffer to store the read LFN. This member must be initialized by application program prior to use this structure. Set a null pointer if LFN is not needed. Not available at non-LFN configuration.
</dd>
65 <dd>Size of the LFN buffer in unit of TCHAR. This member must be initialized by application program prior to use this structure. Not available at non-LFN configuration.
</dd>
68 <p class=
"foot"><a href=
"../00index_e.html">Return
</a></p>