Merge pull request #1101 from matthiasbeyer/libimagstore/fs-backend/fix-walkdir-depth

Libimagstore: fs backend: Fix walkdir depth
This commit is contained in:
Matthias Beyer 2017-09-21 17:29:47 +02:00 committed by GitHub
commit 7ece32f7c3

View file

@ -159,6 +159,7 @@ impl FileAbstraction for FSFileAbstraction {
use walkdir::WalkDir;
let i : Result<Vec<PathBuf>, SE> = WalkDir::new(basepath)
.min_depth(1)
.into_iter()
.map(|r| {
r.map(|e| PathBuf::from(e.path()))