[GH-ISSUE #471] -X option does not work for absolute paths #207

Closed
opened 2026-06-08 11:26:08 +03:00 by zhus · 1 comment
Owner

Originally created by @sataset on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/bootandy/dust/issues/471

Info

  • OS: nixos
  • Dust version: 1.1.1

Command

cd /
sudo dust -X /mnt 

Expected

Ignore /mnt during calculation.

Actual

/mnt not ignored.

Screenshots

Image
Image

Workaround

Use relative path.

Screenshots

Image

Originally created by @sataset on GitHub (Feb 13, 2025). Original GitHub issue: https://github.com/bootandy/dust/issues/471 # Info - OS: nixos - Dust version: 1.1.1 # Command ```sh cd / sudo dust -X /mnt ``` # Expected Ignore `/mnt` during calculation. # Actual `/mnt` not ignored. <details><summary>Screenshots</summary> ![Image](https://github.com/user-attachments/assets/89c0fec6-b75c-48fa-b3dd-c393f89b286a) ![Image](https://github.com/user-attachments/assets/724f51c0-203b-4e28-a80d-0d481fc62f8e) </details> # Workaround Use relative path. <details><summary>Screenshots</summary> ![Image](https://github.com/user-attachments/assets/96de5744-c957-4d04-9aee-2cd4eec79020) </details>
zhus closed this issue 2026-06-08 11:26:08 +03:00
Author
Owner

@bootandy commented on GitHub (Feb 21, 2025):

True, -X doesn't work on absolute paths.

$ /home/andy/
dust -X /home/andy/trash

Will still show the trash directory.

I'll look if I can fix this. If not I'll update the docs.

<!-- gh-comment-id:2672834420 --> @bootandy commented on GitHub (Feb 21, 2025): True, -X doesn't work on absolute paths. ``` $ /home/andy/ dust -X /home/andy/trash ``` Will still show the trash directory. I'll look if I can fix this. If not I'll update the docs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#207