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

Method get_file_index

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

Source from the content-addressed store, hash-verified

559 }
560
561 fn get_file_index(&self, path: &str) -> PristineResult<Option<FileIndexMetadata>> {
562 let table = self.txn.open_table(FILE_INDEX)?;
563 match table.get(path)? {
564 Some(value) => {
565 let (secs, nanos, size, hash) = decode_file_index(value.value());
566 Ok(Some((secs, nanos, size, hash)))
567 }
568 None => Ok(None),
569 }
570 }
571
572 fn iter_file_index(&self) -> PristineResult<Vec<FileIndexEntry>> {
573 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