Skip to content

fix: exclude directories from extension filter (issue #1693)#1991

Open
mitre88 wants to merge 2 commits intosharkdp:masterfrom
mitre88:fix/extension-filter-dir
Open

fix: exclude directories from extension filter (issue #1693)#1991
mitre88 wants to merge 2 commits intosharkdp:masterfrom
mitre88:fix/extension-filter-dir

Conversation

@mitre88
Copy link
Copy Markdown

@mitre88 mitre88 commented May 4, 2026

Fixes issue #1693 - directories with matching extension suffix were incorrectly included in results. Now extension filter only applies to files, not directories.

Open Source Contributor added 2 commits May 3, 2026 19:09
Broken symlinks were returning None for depth(), causing min-depth
checks to fail. Now we track depth for BrokenSymlink entries and
return it properly.

Fixes sharkdp#1017
@tmccombs
Copy link
Copy Markdown
Collaborator

tmccombs commented May 5, 2026

It looks like this includes changes from #1990 as well.

I'm also not sure this is something we actually want. Directories can have extensions too, and limiting it to files is just a matter of using -t f in the fd invocation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants