(path: &std::path::Path)
| 269 | } |
| 270 | |
| 271 | pub fn get_modified_time(path: &std::path::Path) -> SystemTime { |
| 272 | std::fs::metadata(path) |
| 273 | .map(|m| m.modified().unwrap_or(UNIX_EPOCH)) |
| 274 | .unwrap_or(UNIX_EPOCH) |
| 275 | } |
| 276 | |
| 277 | pub fn get_created_time(path: &std::path::Path) -> SystemTime { |
| 278 | std::fs::metadata(path) |
no outgoing calls
no test coverage detected