Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10915801091580 Getting Information About a File Anchor10915811091581Detailed information about an open file, such as size and date/time stamps, can be obtained using the FSFile_Query() function : Anchor10964201096420  

...

rowspan4

...

(see Listing - Example FSFile_Query() usage).


FSFile_Query(p_file,
<-- file pointer &info, <-- pointer to info structure &err); <-- return error
Code Block
languagecpp
titleListing - Example FSFile_Query() usage
FS_ENTRY_INFO info;
Anchor
10934771093477
Anchor
10934791093479
Anchor
10934811093481
Table Row (tr)
Table Row (tr)
Table Row (tr)

...

  /* file pointer               */
            &info,    /* pointer to info structure  */
            &err);    /* return error               */


Attrib
contains the file attributes (see File and Directory Attributes).The FS_ENTRY_INFO structure has the following members: Anchor10915881091588 Attrib contains the file attributes (see section 6-2-1 “File and Directory Attributes” on page 90). Anchor10915891091589

  • Size is the size of the file, in octets.

...

  • DateTimeCreate is the creation timestamp of the file.

...

  • DateAccess is the access timestamp (date only) of the file.

...

  • DateTimeWr is the last write (or modification) timestamp of the file.

...

...

  • BlkCnt is the number of blocks allocated to the file. For a FAT file system, this is the number of clusters occupied by the file data.

...

...

  • BlkSize is the size of each block allocated in octets. For a FAT file system, this is the size of a cluster.

...

DateTimeCreate, DateAccess and DateTimeWr are structures of type CLK_TS_SEC.