diff options
author | peter <peter@FreeBSD.org> | 2001-01-23 11:16:50 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-01-23 11:16:50 +0000 |
commit | 7eafba69d54138a0429c71ddd6080ad718f3527c (patch) | |
tree | 9fd9977704c86e786a10c71f41130e4113c603ba /usr.bin/find/find.h | |
parent | 3bdade41c9a9713ee00256d16b86b65b74fc8f7e (diff) | |
download | FreeBSD-src-7eafba69d54138a0429c71ddd6080ad718f3527c.zip FreeBSD-src-7eafba69d54138a0429c71ddd6080ad718f3527c.tar.gz |
Add the -empty flag, from OpenBSD. It returns true if the directory
is empty. There doesn't appear to be another easy way to do this.
mobile# mkdir foo
mobile# mkdir foo/bar
mobile# mkdir bar
mobile# find . -empty
./foo/bar
./bar
Diffstat (limited to 'usr.bin/find/find.h')
-rw-r--r-- | usr.bin/find/find.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/find/find.h b/usr.bin/find/find.h index 35aadac..e126086 100644 --- a/usr.bin/find/find.h +++ b/usr.bin/find/find.h @@ -41,9 +41,9 @@ enum ntype { N_AND = 1, /* must start > 0 */ N_AMIN, N_ATIME, N_CLOSEPAREN, N_CMIN, N_CTIME, N_DEPTH, - N_EXEC, N_EXECDIR, N_EXPR, N_FLAGS, + N_EMPTY, N_EXEC, N_EXECDIR, N_EXPR, N_FLAGS, N_FOLLOW, N_FSTYPE, N_GROUP, N_INUM, N_LINKS, N_LS, N_MMIN, - N_MTIME, N_NAME, + N_MTIME, N_NAME, N_NEWER, N_NOGROUP, N_NOT, N_NOUSER, N_OK, N_OPENPAREN, N_OR, N_PATH, N_PERM, N_PRINT, N_PRUNE, N_SIZE, N_TYPE, N_USER, N_XDEV, N_PRINT0, N_DELETE, N_MAXDEPTH, N_MINDEPTH |