find: add support for -delete, -path (by Natanael Copa)

This commit is contained in:
Denis Vlasenko
2007-04-13 10:00:12 +00:00
parent 945bd3dee8
commit 62f0479cf1
3 changed files with 64 additions and 0 deletions

View File

@@ -135,6 +135,22 @@ config FEATURE_FIND_PRUNE
If the file is a directory, dont descend into it. Useful for
exclusion .svn and CVS directories.
config FEATURE_FIND_DELETE
bool "Enable -delete option allowing to delete files"
default n
depends on FIND && FEATURE_FIND_DEPTH
help
Support the 'find -delete' option for deleting files and direcotries.
WARNING: This option can do much harm if used wrong. Busybox will not
try to protect the user from doing stupid things. Use with care.
config FEATURE_FIND_PATH
bool "Enable -path option allowing to match pathname patterns"
default y
depends on FIND
help
The -path option matches whole pathnames instead of just filenames.
config GREP
bool "grep"
default n