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:
Matthias Beyer 2018-05-02 15:19:44 +02:00 committed by GitHub
commit b52cb0d697
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 },