Create a new iterator starting from the changes directory.
(changes_dir: &Path)
| 28 | impl 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>> { |