simple_fs/common/smeta.rs
1/// A simplified file metadata structure with common, normalized fields.
2/// All fields are guaranteed to be present.
3pub struct SMeta {
4 /// Creation time since the Unix epoch in microseconds.
5 /// If unavailable, this may fall back to the modification time.
6 pub created_epoch_us: i64,
7
8 /// Last modification time since the Unix epoch in microseconds.
9 pub modified_epoch_us: i64,
10
11 /// File size in bytes. Will be 0 for directories or when unavailable.
12 pub size: u64,
13
14 /// Whether the path is a regular file.
15 pub is_file: bool,
16
17 /// Whether the path is a directory.
18 pub is_dir: bool,
19}