Merge branch 'fix-path-iterator' into master-ff

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-04-13 23:42:20 +02:00
commit 0283c3af7a
1 changed files with 4 additions and 0 deletions

View File

@ -176,6 +176,10 @@ impl PathIterBuilder for WalkDirPathIterBuilder {
.min_depth(1)
.max_open(100)
.into_iter()
.filter(|r| match r {
Err(_) => true,
Ok(path) => path.file_type().is_file(),
})
.map(|r| {
trace!("Working in PathIterator with {:?}", r);
r.map(|e| PathBuf::from(e.path()))