(path: &std::path::Path)
| 275 | } |
| 276 | |
| 277 | pub fn get_created_time(path: &std::path::Path) -> SystemTime { |
| 278 | std::fs::metadata(path) |
| 279 | .map(|m| m.created().unwrap_or(UNIX_EPOCH)) |
| 280 | .unwrap_or(UNIX_EPOCH) |
| 281 | } |
| 282 | |
| 283 | pub fn get_exe_time() -> SystemTime { |
| 284 | std::env::current_exe().map_or(UNIX_EPOCH, |path| { |