MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / config_mtime_nanos

Function config_mtime_nanos

atomic-repository/src/repository/observability.rs:967–974  ·  view source on GitHub ↗
(dot_dir: &Path)

Source from the content-addressed store, hash-verified

965}
966
967fn config_mtime_nanos(dot_dir: &Path) -> u64 {
968 std::fs::metadata(dot_dir.join("config.toml"))
969 .and_then(|metadata| metadata.modified())
970 .ok()
971 .and_then(|modified| modified.duration_since(UNIX_EPOCH).ok())
972 .map(|duration| duration.as_nanos() as u64)
973 .unwrap_or(0)
974}
975
976impl Repository {
977 /// The serialized, expected-old-leased shim consent transition

Callers 2

for_dot_dirMethod · 0.85
refresh_consentMethod · 0.85

Calls 2

okMethod · 0.45
modifiedMethod · 0.45

Tested by

no test coverage detected