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:
@@ -170,8 +170,11 @@ fn walk(
|
||||
})
|
||||
.collect();
|
||||
} else {
|
||||
// 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(
|
||||
dir,
|
||||
children,
|
||||
|
||||
Reference in New Issue
Block a user