mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Fix: Permissions
Stop incorrect reporting of "Did not have permissions" this would happen where dust is called with a file instead of a directory. https://github.com/bootandy/dust/issues/241 todo: add test
This commit is contained in:
+4
-1
@@ -170,7 +170,10 @@ fn walk(
|
|||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
} else {
|
} else {
|
||||||
permissions_flag.store(true, atomic::Ordering::Relaxed);
|
// Handle edge case where dust is called with a file instead of a directory
|
||||||
|
if !dir.exists() {
|
||||||
|
permissions_flag.store(true, atomic::Ordering::Relaxed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
build_node(
|
build_node(
|
||||||
dir,
|
dir,
|
||||||
|
|||||||
Reference in New Issue
Block a user