-
-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete file-type handling #511
Comments
Thank you for the feedback. The problem is that sockets, FIFOs, etc. are specific to Unix-like operating systems, whereas Sure, we could add OS-specific features, but that would complicate a lot of things (the code base, documentation, testing). |
I'm not sure if it would meet @mcint's needs, but what if there was a "special" type to match files that are not "normal", which would include sockets, fifos, character/block special files, etc. on unix, and any similar os-specific specail files on windows if there are any. |
The question is if this is really a 80% use case (or even a 99% use case) or if this is just a request to add these filetypes "for completeness". So far, I've never found myself in the need to search for sockets or FIFOs - but obviously that doesn't mean that we should definitely not add this to |
Not saying this to be demanding, but I personally needed this today. I was Of course I can't speak to how much usage this would actually get, but I would say that this is a non-existing feature I find harder to work around than other (in comparison to
I definitely understand that tho (in the general, I personally value Unix-portability more than Windows-compatibility). I respect your decision either way. |
Fixed via #572 I decided to only implement |
This has now been released in fd v8.0. |
I was looking for sockets, but noticed some other file types are missing as well.
From
find
:equivalently, via the Open Group sys/stat.h linked from Wikipedia
For reference,
fd
offers the following filetype filters currently, according to--help
:The text was updated successfully, but these errors were encountered: