diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-05-02 14:04:59 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-05-02 14:04:59 +0200 |
commit | 888b31377e96bbf90df400e5afad5a4e18f64ed2 (patch) | |
tree | 10e2c786f2cae2a93f28dc28f25dbbd75c96613c /lib | |
parent | c4d10c7e4f08e2c6bcd276278e981d638524daa3 (diff) |
Fix: Do not check whether path exists - check whether its a file
This fixes a bug introduced in 195d921218559f98844e52cca2ebdfe12fcf6b71
where we didn't check whether the path is actually a file.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/libimagstore/src/file_abstraction/iter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 }, |