MCPcopy Index your code
hub / github.com/encounter/objdiff / file_modified

Function file_modified

objdiff-gui/src/app.rs:880–886  ·  view source on GitHub ↗
(path: P, last_ts: FileTime)

Source from the content-addressed store, hash-verified

878
879#[inline]
880fn file_modified<P: AsRef<Path>>(path: P, last_ts: FileTime) -> bool {
881 if let Ok(metadata) = fs::metadata(path.as_ref()) {
882 FileTime::from_last_modification_time(&metadata) != last_ts
883 } else {
884 false
885 }
886}

Callers 1

post_updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected