mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #494] how to exlude /home from / when using dust? #214
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sascha-wi on GitHub (May 20, 2025).
Original GitHub issue: https://github.com/bootandy/dust/issues/494
Using dust -X home / doesn't work, still shows files in /home on debian.
@Amr-Shams commented on GitHub (May 23, 2025):
dust -X home /doesn't work because the ignore logic only matches absolute paths. To ignorehomeyou must use-X /home. that code is found in the functionfn is_ignored_path(path: &Path, walk_data: &WalkData)where this partif !ignored_path.is_absolute() { continue; }@bootandy commented on GitHub (Jun 3, 2025):
As @Amr-Shams says you need the absolute path:
dust -X /home /