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

Method modified_time

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

Get the modification time of a file.

(&self, path: &str)

Source from the content-addressed store, hash-verified

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

Callers 2

Calls 2

resolve_pathMethod · 0.45
modifiedMethod · 0.45

Tested by 2