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

Method file_metadata

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

Source from the content-addressed store, hash-verified

504 type Error = MemoryError;
505
506 fn file_metadata(&self, path: &str) -> Result<FileMetadata, Self::Error> {
507 let files = self.files.borrow();
508 files
509 .get(path)
510 .map(|f| f.metadata)
511 .ok_or_else(|| MemoryError::NotFound {
512 path: path.to_string(),
513 })
514 }
515
516 fn read_file(&self, path: &str, buffer: &mut Vec<u8>) -> Result<(), Self::Error> {
517 let files = self.files.borrow();

Callers 4

test_file_metadataFunction · 0.45
test_set_permissionsFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 4

test_file_metadataFunction · 0.36
test_set_permissionsFunction · 0.36