Files
brk/crates/brk_parser/src/blk_metadata.rs
2025-02-23 01:25:15 +01:00

19 lines
340 B
Rust

use std::path::Path;
use crate::path_to_modified_time;
#[derive(Debug, Clone, Copy)]
pub struct BlkMetadata {
pub index: u16,
pub modified_time: u64,
}
impl BlkMetadata {
pub fn new(index: u16, path: &Path) -> Self {
Self {
index,
modified_time: path_to_modified_time(path),
}
}
}