Fix: Do not check whether path exists - check whether its a file
This fixes a bug introduced in 195d921218
where we didn't check whether the path is actually a file.
This commit is contained in:
parent
c4d10c7e4f
commit
888b31377e
1 changed files with 1 additions and 1 deletions
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue