simple_fs/common/
smeta.rs

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