MCPcopy Create free account
hub / github.com/Recordscript/recordscript / get_modified_time

Function get_modified_time

libs/hbb_common/src/lib.rs:271–275  ·  view source on GitHub ↗
(path: &std::path::Path)

Source from the content-addressed store, hash-verified

269}
270
271pub 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
277pub fn get_created_time(path: &std::path::Path) -> SystemTime {
278 std::fs::metadata(path)

Callers 2

peersMethod · 0.85
get_exe_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected