Skip to content

Match sub-directories or allow globs/regexs with --ignore-directory #173

@andreavaccari

Description

@andreavaccari

Hi, thank you for your work on dust. This is a suggestion for improvement. The --ignore-directory flag currently does not match subdirectories. This would be very helpful, for example, to analyze a directory containing many repos, each containing directories to ignore: dust -f -X .git -X node_modules ~/dir-with-many-repos.

Possible improvements are:

  • Matching the specified names against a candidate's name instead of its relative path.
  • Allowing to specify patterns with globs (**/node_modules) or regexs (.*/node_modules$).

The latter is more complex but more flexible, and would make it so only one flag could/should be specified.

Unfortunately I'm not familiar with Rust. I hope you'll consider implementing this in the future. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions