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

find: Add the -readable, -writable and -executable options

This commit is contained in:
Tim Ledbetter 2023-08-27 10:42:04 +01:00 committed by Tim Flynn
parent 4519ac2da9
commit edd49c1531
2 changed files with 27 additions and 0 deletions

View file

@ -39,6 +39,10 @@ specified commands, a `-print` command is implicitly appended.
pattern (case sensitive).
* `-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.
* `-writable`: Checks if the file is writable by the current user.
* `-executable`: Checks if the file is executable, or directory is searchable,
by the current user.
* `-print`: Outputs the file path, followed by a newline. Always evaluates to
true.
* `-print0`: Outputs the file path, followed by a zero byte. Always evaluates to