only process files in rescan, finally fix tests

feat/vaults
Tomáš Mládek 2021-12-05 13:26:10 +01:00
parent 365987f261
commit 64cdbf08bc
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ fn _rescan_vault<T: AsRef<Path>>(
.into_iter()
.filter_map(|e| e.ok())
.map(|e| fs::canonicalize(e.into_path()).unwrap())
.filter(|e| e.is_file())
.filter(|e| !e.starts_with(&absolute_dir_path.join(UPEND_SUBDIR)))
.collect();