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.