diff --git a/lib/core/libimagstore/src/file_abstraction/fs.rs b/lib/core/libimagstore/src/file_abstraction/fs.rs index 9877474d..904e81d0 100644 --- a/lib/core/libimagstore/src/file_abstraction/fs.rs +++ b/lib/core/libimagstore/src/file_abstraction/fs.rs @@ -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()))