1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

find: Add the -empty option

This predicate returns true for empty regular files or directories.
This commit is contained in:
Tim Ledbetter 2023-09-01 20:22:20 +01:00 committed by Jelle Raaijmakers
parent db2701f2e2
commit 889e6ab43d
2 changed files with 30 additions and 0 deletions

View file

@ -46,6 +46,8 @@ space rounded up to the nearest whole unit.
* `-name pattern`: Checks if the file name matches the given global-style
pattern (case sensitive).
* `-empty`: File is either an empty regular file or a directory containing no
files.
* `-iname pattern`: Checks if the file name matches the given global-style
pattern (case insensitive).
* `-readable`: Checks if the file is readable by the current user.