[GH-ISSUE #222] Unable to skip a subfolder using -X #102

Closed
opened 2026-06-08 11:25:41 +03:00 by zhus · 4 comments
Owner

Originally created by @isshin1 on GitHub (Jun 13, 2022).
Original GitHub issue: https://github.com/bootandy/dust/issues/222

say I'm running dust in home directory, and it has structure

folder1
├── folder2
│   └── folder5
├── folder3
└── folder4

then using the -X option, I can only skip the folder1 entirely only, but If I want dust to ignore the any of other folders specifically, then it doesnt seems to be possible.

I tried , using wildcards or full path to that folder, but didnt wotk

dust -X folder2
dust -X '*folder5'

can you pls look into it, also it will be really awesome if we can have a global config file which have a section to have a list of foldernames ( with full paths ) which can be skipped, like

[skip_folders]
/home/Isshin/Pictures
/home/Isshin/.local/share/Steam

thanks

Originally created by @isshin1 on GitHub (Jun 13, 2022). Original GitHub issue: https://github.com/bootandy/dust/issues/222 say I'm running dust in home directory, and it has structure folder1 ├── folder2 │   └── folder5 ├── folder3 └── folder4 then using the -X option, I can only skip the folder1 entirely only, but If I want dust to ignore the any of other folders specifically, then it doesnt seems to be possible. I tried , using wildcards or full path to that folder, but didnt wotk `dust -X folder2` `dust -X '*folder5'` can you pls look into it, also it will be really awesome if we can have a global config file which have a section to have a list of foldernames ( with full paths ) which can be skipped, like ``` [skip_folders] /home/Isshin/Pictures /home/Isshin/.local/share/Steam ``` thanks
zhus closed this issue 2026-06-08 11:25:41 +03:00
Author
Owner

@bootandy commented on GitHub (Jun 20, 2022):

You can use these:

dust -v REGEX dust -e REGEX

so you could use this to ignore folders called 'folder'
dust -v folder

and this to only include folders called 'folder'
dust -e folder

<!-- gh-comment-id:1160518808 --> @bootandy commented on GitHub (Jun 20, 2022): You can use these: `dust -v REGEX` `dust -e REGEX` so you could use this to ignore folders called 'folder' `dust -v folder` and this to only include folders called 'folder' `dust -e folder`
Author
Owner

@bootandy commented on GitHub (Jun 20, 2022):

A global config file is something I want to look into.

https://github.com/bootandy/dust/issues/168

<!-- gh-comment-id:1160519717 --> @bootandy commented on GitHub (Jun 20, 2022): A global config file is something I want to look into. https://github.com/bootandy/dust/issues/168
Author
Owner

@bootandy commented on GitHub (Jun 20, 2022):

-X string matches without regex so you can write:

dust -X folder1/folder2

[Use -v if you want regex]

<!-- gh-comment-id:1160521629 --> @bootandy commented on GitHub (Jun 20, 2022): -X string matches without regex so you can write: `dust -X folder1/folder2` [Use -v if you want regex]
Author
Owner

@isshin1 commented on GitHub (Jun 20, 2022):

thanks, guess will wait for the config then

closing this one

<!-- gh-comment-id:1160625812 --> @isshin1 commented on GitHub (Jun 20, 2022): thanks, guess will wait for the config then closing this one
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#102