Merge pull request #1101 from matthiasbeyer/libimagstore/fs-backend/fix-walkdir-depth
Libimagstore: fs backend: Fix walkdir depth
This commit is contained in:
commit
7ece32f7c3
1 changed files with 1 additions and 0 deletions
|
@ -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()))
|
||||
|
|
Loading…
Reference in a new issue