]>
Commit | Line | Data |
---|---|---|
53668523 L |
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r |
2 | <html lang="en">\r | |
3 | <head>\r | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r | |
5 | <meta http-equiv="Content-Style-Type" content="text/css">\r | |
6 | <link rel="up" title="FatFs" href="../00index_e.html">\r | |
7 | <link rel="alternate" hreflang="ja" title="Japanese" href="../ja/sfileinfo.html">\r | |
8 | <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">\r | |
9 | <title>FatFs - FILINFO</title>\r | |
10 | </head>\r | |
11 | \r | |
12 | <body>\r | |
13 | \r | |
14 | <div class="para">\r | |
15 | <h2>FILINFO</h2>\r | |
16 | <p>The <tt>FILINFO</tt> structure holds a file information returned by <tt>f_readdir()</tt> and <tt>f_stat()</tt> function.</p>\r | |
17 | <pre>\r | |
18 | <span class="k">typedef struct</span> {\r | |
19 | DWORD fsize; <span class="c">/* File size */</span>\r | |
20 | WORD fdate; <span class="c">/* Last modified date */</span>\r | |
21 | WORD ftime; <span class="c">/* Last modified time */</span>\r | |
22 | BYTE fattrib; <span class="c">/* Attribute */</span>\r | |
23 | TCHAR fname[13]; <span class="c">/* Short file name (8.3 format) */</span>\r | |
24 | <span class="k">#if</span> _USE_LFN\r | |
25 | TCHAR* lfname; <span class="c">/* Pointer to the LFN buffer */</span>\r | |
26 | int lfsize; <span class="c">/* Size of the LFN buffer in unit of TCHAR */</span>\r | |
27 | <span class="k">#endif</span>\r | |
28 | } FILINFO;\r | |
29 | </pre>\r | |
30 | </div>\r | |
31 | \r | |
32 | <h4>Members</h4>\r | |
33 | <dl>\r | |
34 | <dt>fsize</dt>\r | |
35 | <dd>Indicates size of the file in unit of byte. Always zero for directories.</dd>\r | |
36 | <dt>fdate</dt>\r | |
37 | <dd>Indicates the date that the file was modified or the directory was created.<br>\r | |
38 | <dl>\r | |
39 | <dt>bit15:9</dt>\r | |
40 | <dd>Year origin from 1980 (0..127)</dd>\r | |
41 | <dt>bit8:5</dt>\r | |
42 | <dd>Month (1..12)</dd>\r | |
43 | <dt>bit4:0</dt>\r | |
44 | <dd>Day (1..31)</dd>\r | |
45 | </dl>\r | |
46 | </dd>\r | |
47 | <dt>ftime</dt>\r | |
48 | <dd>Indicates the time that the file was modified or the directory was created.<br>\r | |
49 | <dl>\r | |
50 | <dt>bit15:11</dt>\r | |
51 | <dd>Hour (0..23)</dd>\r | |
52 | <dt>bit10:5</dt>\r | |
53 | <dd>Minute (0..59)</dd>\r | |
54 | <dt>bit4:0</dt>\r | |
55 | <dd>Second / 2 (0..29)</dd>\r | |
56 | </dl>\r | |
57 | </dd>\r | |
58 | <dt>fattrib</dt>\r | |
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>\r | |
60 | <dt>fname[]</dt>\r | |
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>\r | |
62 | <dt>lfname</dt>\r | |
7b78a5a2 | 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>\r |
53668523 | 64 | <dt>lfsize</dt>\r |
7b78a5a2 | 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>\r |
53668523 L |
66 | </dl>\r |
67 | \r | |
68 | <p class="foot"><a href="../00index_e.html">Return</a></p>\r | |
69 | </body>\r | |
70 | </html>\r |