#[repr(C)]pub struct FileInfo {
pub file_attributes: u32,
pub reparse_tag: u32,
pub allocation_size: u64,
pub file_size: u64,
pub creation_time: u64,
pub last_access_time: u64,
pub last_write_time: u64,
pub change_time: u64,
pub index_number: u64,
pub hard_links: u32,
pub ea_size: u32,
}
Expand description
A struct that holds information about a file.
Fields§
§file_attributes: u32
Specifies one or more FILE_ATTRIBUTE_XXX flags. For descriptions of these flags, see File Attribute Constants in the Microsoft Windows SDK.
reparse_tag: u32
Specifies the reparse point tag. If the file_attributes
member includes the FILE_ATTRIBUTE_REPARSE_POINT attribute flag,
this member specifies the reparse tag. Otherwise, this member is unused.
allocation_size: u64
The file allocation size in bytes. Usually, this value is a multiple of the sector or cluster size of the underlying physical device.
file_size: u64
The end of file location as a byte offset.
creation_time: u64
Specifies the time that the file was created.
last_access_time: u64
Specifies the time that the file was last accessed.
last_write_time: u64
Specifies the time that the file was last written to.
change_time: u64
Specifies the last time the file was changed.
index_number: u64
The 8-byte file reference number for the file. This number is assigned by the file system and is file-system-specific. (Note that this is not the same as the 16-byte “file object ID” that was added to NTFS for Microsoft Windows 2000.)
hard_links: u32
The number of hard links to the file. This is unimplemented in WinFSP and should always be 0.
ea_size: u32
Specifies the combined length, in bytes, of the extended attributes for the file.