mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #453] "dust -X node_modules" only removes the current directory's node_modules, not nested ones #199
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 @edbrannin on GitHub (Dec 5, 2024).
Original GitHub issue: https://github.com/bootandy/dust/issues/453
(Maybe I should just be using
dust -v node_modules, but in that case the--helptext seems misleading)Per the helptext:
With a name like "Exclude any file or directory with this name", it seems like:
-X node_modulesshould ignore bothnode_modulesandsubdir/node_modules-vif I wanted to match partial filenames with a regex.Result using
dust -XResult using
dust -v(also my desired result of using
dust -X@Its-Just-Nans commented on GitHub (Dec 30, 2024):
Hello
As written in the
--help, it's:-X <PATH>-v <REGEX>@bootandy commented on GitHub (Jan 15, 2025):
Yeah I've thought about this one myself. I'm not entirely happy with the current design. Adding
-v REGEXwas a way to make it smarter.