You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my point of view, searching for empty files/directories is a rather niche use case and I would only consider adding it, if there is a strong support for this (see the part about "80% of the use cases" in the README).
Also, I would like us to think about alternatives to a new --empty command line option. One option could be to extend the --type option with a new "empty" type. Another option could be to use --size 0 (if we decide to move forward with #276).
Add a new `empty`/`e` type to search for empty files and/or directories.
To search for both empty files and directories, use one of the
following:
fd --type empty
fd -te
fd --type empty --type file --type directory
To search for empty files, use
fd --type empty --type file
fd -te -tf
To search for empty directories, use
fd --type empty --type directory
fd -te -td
closes#273
This is something that find has that would be very nice to have.
The text was updated successfully, but these errors were encountered: