[GH-ISSUE #494] how to exlude /home from / when using dust? #214

Closed
opened 2026-06-08 11:26:10 +03:00 by zhus · 2 comments
Owner

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.

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.
zhus closed this issue 2026-06-08 11:26:10 +03:00
Author
Owner

@Amr-Shams commented on GitHub (May 23, 2025):

dust -X home / doesn't work because the ignore logic only matches absolute paths. To ignore home you must use -X /home. that code is found in the function fn is_ignored_path(path: &Path, walk_data: &WalkData) where this part if !ignored_path.is_absolute() { continue; }

<!-- gh-comment-id:2903609216 --> @Amr-Shams commented on GitHub (May 23, 2025): `dust -X home /` doesn't work because the ignore logic only matches absolute paths. To ignore `home` you must use `-X /home`. that code is found in the function `fn is_ignored_path(path: &Path, walk_data: &WalkData)` where this part ` if !ignored_path.is_absolute() { continue; }`
Author
Owner

@bootandy commented on GitHub (Jun 3, 2025):

As @Amr-Shams says you need the absolute path:

dust -X /home /

<!-- gh-comment-id:2932585682 --> @bootandy commented on GitHub (Jun 3, 2025): As @Amr-Shams says you need the absolute path: ` dust -X /home / `
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#214