Merge pull request #1479 from matthiasbeyer/libimagstore/fix-fa-iter-checkfileexists
Fix: Do not check whether path exists - check whether its a file
This commit is contained in:
commit
b52cb0d697
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