<p>The <tt>FILINFO</tt> structure holds a file information returned by f_stat and f_readdir function.</p>
16
<pre>
17
typedef struct _FILINFO_ {
18
DWORD fsize; /* File size */
19
WORD fdate; /* Last modified date */
20
WORD ftime; /* Last modified time */
21
BYTE fattrib; /* Attribute */
22
char fname[13]; /* Short file name (8.3 format) */
23
#if _USE_LFN
24
XCHAR* lfname; /* Pointer to the LFN buffer */
25
int lfsize; /* Size of LFN buffer [characters] */
26
#endif
27
} FILINFO;
28
</pre>
29
</div>
30
31
<h4>Members</h4>
32
<dl>
33
<dt>fsize</dt>
34
<dd>Indicates size of the file in unit of byte. This is always zero when it is a directory.</dd>
35
<dt>fdate</dt>
36
<dd>Indicates the date that the file was modified or the directory was created.<br>
37
<dl>
38
<dt>bit15:9</dt>
39
<dd>Year origin from 1980 (0..127)</dd>
40
<dt>bit8:5</dt>
41
<dd>Month (1..12)</dd>
42
<dt>bit4:0</dt>
43
<dd>Day (1..31)</dd>
44
</dl>
45
</dd>
46
<dt>ftime</dt>
47
<dd>Indicates the time that the file was modified or the directory was created.<br>
48
<dl>
49
<dt>bit15:11</dt>
50
<dd>Hour (0..23)</dd>
51
<dt>bit10:5</dt>
52
<dd>Minute (0..59)</dd>
53
<dt>bit4:0</dt>
54
<dd>Second / 2 (0..29)</dd>
55
</dl>
56
</dd>
57
<dt>fattrib</dt>
58
<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>
59
<dt>fname[]</dt>
60
<dd>Indicates the file/directory name in 8.3 format null-terminated string. It is always returnd with upper case on non-LFN configuration but it can be returned with lower case on LFN configuration.</dd>
61
<dt>lfname</dt>
62
<dd>Pointer to the LFN buffer to store the read LFN. This member must be initialized by application prior to use this structure. Not available on non-LFN configuration.</dd>
63
<dt>lfsize</dt>
64
<dd>Size of the LFN buffer in unit of chars. This member must be initialized by application prior to use this structure. Not available on non-LFN configuration.</dd>