Skip to content

Directories are shown even if they don’t contain files with the specified extension #14

@zyadtaha

Description

@zyadtaha

When using the --ext flag to filter files by extension, the tool displays directories even if they don’t contain any files with the specified extension.

For example, when running go run ./cmd/main.go --ext .md, the entire directory structure is being shown, including directories like assets/ and cmd/, which don’t contain any .md files.

Wouldn't it be better to only display directories that contain at least one file with the specified extension?
If that makes sense to you, let me know to start working on it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions