diff --git a/lib/core/libimagstore/src/file_abstraction/iter.rs b/lib/core/libimagstore/src/file_abstraction/iter.rs index dea30a5e..2cf479b7 100644 --- a/lib/core/libimagstore/src/file_abstraction/iter.rs +++ b/lib/core/libimagstore/src/file_abstraction/iter.rs @@ -63,7 +63,7 @@ impl Iterator for StoreIdConstructingIterator { while let Some(next) = self.0.next() { match next { Err(e) => return Some(Err(e)), - Ok(next) => match self.2.exists(&next) { + Ok(next) => match self.2.is_file(&next) { Err(e) => return Some(Err(e)), Ok(true) => return Some(StoreId::from_full_path(&self.1, next)), Ok(false) => { continue },