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

Method modified_time

atomic-core/src/output/memory.rs:532–540  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

530 }
531
532 fn modified_time(&self, path: &str) -> Result<SystemTime, Self::Error> {
533 let files = self.files.borrow();
534 files
535 .get(path)
536 .map(|f| f.modified)
537 .ok_or_else(|| MemoryError::NotFound {
538 path: path.to_string(),
539 })
540 }
541
542 fn exists(&self, path: &str) -> bool {
543 self.files.borrow().contains_key(path)

Callers 1

test_modified_timeFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 1

test_modified_timeFunction · 0.36