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

Method get_file_index

atomic-core/src/pristine/txn/read.rs:516–525  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

514 }
515
516 fn get_file_index(&self, path: &str) -> PristineResult<Option<FileIndexMetadata>> {
517 let table = self.txn.open_table(FILE_INDEX)?;
518 match table.get(path)? {
519 Some(value) => {
520 let (secs, nanos, size, hash) = decode_file_index(value.value());
521 Ok(Some((secs, nanos, size, hash)))
522 }
523 None => Ok(None),
524 }
525 }
526
527 fn iter_file_index(&self) -> PristineResult<Vec<FileIndexEntry>> {
528 let table = match self.txn.open_table(FILE_INDEX) {

Callers

nothing calls this directly

Calls 2

decode_file_indexFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected