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

Function get_file

atomic-core/src/output/crdt.rs:412–414  ·  view source on GitHub ↗

Retrieve a complete file with all metadata and lines.

(txn: &mut T, path: &str)

Source from the content-addressed store, hash-verified

410
411/// Retrieve a complete file with all metadata and lines.
412pub fn get_file<T: MutTxnT>(txn: &mut T, path: &str) -> PristineResult<Option<File>> {
413 get_file_with_options(txn, path, &RetrievalOptions::default())
414}
415
416/// Retrieve a complete file with options.
417pub fn get_file_with_options<T: MutTxnT>(

Callers

nothing calls this directly

Calls 1

get_file_with_optionsFunction · 0.85

Tested by

no test coverage detected