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

Method modified_time

atomic-core/src/output/filesystem/walk.rs:120–124  ·  view source on GitHub ↗

Get the modification time of a file.

(&self, path: &str)

Source from the content-addressed store, hash-verified

118
119 /// Get the modification time of a file.
120 fn modified_time(&self, path: &str) -> Result<SystemTime, Self::Error> {
121 let abs_path = self.resolve_path(path)?;
122 let metadata = fs::metadata(&abs_path)?;
123 metadata.modified()
124 }
125
126 /// Check if a path exists.
127 fn exists(&self, path: &str) -> bool {

Callers 2

Calls 2

resolve_pathMethod · 0.45
modifiedMethod · 0.45

Tested by 2