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

Method new

atomic-repository/src/changestore/iterators.rs:30–36  ·  view source on GitHub ↗

Create a new iterator starting from the changes directory.

(changes_dir: &Path)

Source from the content-addressed store, hash-verified

28impl ChangeIterator {
29 /// Create a new iterator starting from the changes directory.
30 pub(crate) fn new(changes_dir: &Path) -> Self {
31 let dir_iter = fs::read_dir(changes_dir).ok();
32 Self {
33 dir_iter,
34 file_iter: None,
35 }
36 }
37
38 /// Try to get the next hash from the current file iterator.
39 fn next_from_files(&mut self) -> Option<ChangeStoreResult<Hash>> {

Callers

nothing calls this directly

Calls 1

okMethod · 0.45

Tested by

no test coverage detected