public final class FindOptionSets extends Object
find
command with the
the following options:
-d | --typeDirectory | Consider only directories | |||
-f | --typeFile | Consider only regular files | |||
-l | --typeSymlink | Consider only symbolic links | |||
-x | --typeOther | Consider only files that are neither of directory (d), regular file (f) or symlink (l). | |||
-r | --regex | Use full regular expression syntax for the patterns specified by the
name operand
(This option is ignored if no name operand is specified). | |||
-i | --ignoreCase | Use case insensitive matching when applying the file name pattern
specified by the name operand
(This option is ignored if no name operand is specified). | |||
-n | --timeNewer | Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default)
(This option is ignored if no time operand is specified). | |||
-o | --timeOlder | Consider only files that have been created, modified or accessed
before or at the time specified by the time operand
(This option is ignored if no time operand is specified). | |||
-c | --timeCreate | The time operand refers to the creation time of the file
(This option is ignored if no time operand is specified). | |||
-a | --timeAccess | The time operand refers to the last access time of the file
(This option is ignored if no time operand is specified). | |||
-m | --timeModified | The time operand refers to the last modification time of the file
(the default)
(This option is ignored if no time operand is specified). | |||
-z | --print0 | Print the full file name on the standard output, followed by a null character (instead of the newline character used by default). This allows file names that contain newlines or other types of white space to be correctly interpreted by programs that process the find output. This option corresponds to the --delimiter0 option of xargs. |
This class serves as entry point to every possible set of find
options
defined as an enum constant. With this explicit expansion of all possible
option combinations, options can be passed to the command in a very compact
form, such as:
find(Find.Options.d, ...); find(Find.Options.d.f, ...); ... find(Find.Options.d.f.l.x.r.i.n.o.c.a.m.z, ...);
Modifier and Type | Field and Description |
---|---|
FindOptionSet_adfilnorxz |
a
Option
"-a" : The time operand refers to the last access time of the file |
FindOptionSet_cdfilnorxz |
c
Option
"-c" : The time operand refers to the creation time of the file |
FindOptionSet_acdimnorz |
d
Option
"-d" : Consider only directories |
FindOptionSet_acfimnorz |
f
Option
"-f" : Consider only regular files |
FindOptionSet_acdfilmnorxz |
i
Option
"-i" : Use case insensitive matching when applying the file name pattern
specified by the name operand |
FindOptionSet_acdfilmnorxz |
ignoreCase
Option
"--ignoreCase" : Use case insensitive matching when applying the file name pattern
specified by the name operand |
static FindOptionSets |
INSTANCE
The singleton instance.
|
FindOptionSet_acilmnorz |
l
Option
"-l" : Consider only symbolic links |
FindOptionSet_dfilmnorxz |
m
Option
"-m" : The time operand refers to the last modification time of the file
(the default) |
FindOptionSet_acdfilmnorxz |
n
Option
"-n" : Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default) |
FindOptionSet_acdfilmnorxz |
o
Option
"-o" : Consider only files that have been created, modified or accessed
before or at the time specified by the time operand |
FindOptionSet_acdfilmnorxz |
print0
Option
"--print0" : Print the full file name on the standard output, followed by a null
character (instead of the newline character used by default). |
FindOptionSet_acdfilmnorxz |
r
Option
"-r" : Use full regular expression syntax for the patterns specified by the
name operand |
FindOptionSet_acdfilmnorxz |
regex
Option
"--regex" : Use full regular expression syntax for the patterns specified by the
name operand |
FindOptionSet_adfilnorxz |
timeAccess
Option
"--timeAccess" : The time operand refers to the last access time of the file |
FindOptionSet_cdfilnorxz |
timeCreate
Option
"--timeCreate" : The time operand refers to the creation time of the file |
FindOptionSet_dfilmnorxz |
timeModified
Option
"--timeModified" : The time operand refers to the last modification time of the file
(the default) |
FindOptionSet_acdfilmnorxz |
timeNewer
Option
"--timeNewer" : Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default) |
FindOptionSet_acdfilmnorxz |
timeOlder
Option
"--timeOlder" : Consider only files that have been created, modified or accessed
before or at the time specified by the time operand |
FindOptionSet_acdimnorz |
typeDirectory
Option
"--typeDirectory" : Consider only directories |
FindOptionSet_acfimnorz |
typeFile
Option
"--typeFile" : Consider only regular files |
FindOptionSet_acimnorxz |
typeOther
Option
"--typeOther" : Consider only files that are neither of directory (d),
regular file (f) or symlink (l). |
FindOptionSet_acilmnorz |
typeSymlink
Option
"--typeSymlink" : Consider only symbolic links |
FindOptionSet_acimnorxz |
x
Option
"-x" : Consider only files that are neither of directory (d),
regular file (f) or symlink (l). |
FindOptionSet_acdfilmnorxz |
z
Option
"-z" : Print the full file name on the standard output, followed by a null
character (instead of the newline character used by default). |
Constructor and Description |
---|
FindOptionSets() |
public static final FindOptionSets INSTANCE
public final FindOptionSet_acdfilmnorxz i
"-i"
: Use case insensitive matching when applying the file name pattern
specified by the name operand
(This option is ignored if no name operand is specified).
The option "-i"
is equivalent to the "--
ignoreCase
"
option.
public final FindOptionSet_acdfilmnorxz ignoreCase
"--ignoreCase"
: Use case insensitive matching when applying the file name pattern
specified by the name operand
(This option is ignored if no name operand is specified).
The option "--ignoreCase"
is equivalent to the "-
i
"
option.
public final FindOptionSet_acdfilmnorxz z
"-z"
: Print the full file name on the standard output, followed by a null
character (instead of the newline character used by default). This
allows file names that contain newlines or other types of white
space to be correctly interpreted by programs that process the find
output. This option corresponds to the --delimiter0 option of xargs.
The option "-z"
is equivalent to the "--
print0
"
option.
public final FindOptionSet_acdfilmnorxz print0
"--print0"
: Print the full file name on the standard output, followed by a null
character (instead of the newline character used by default). This
allows file names that contain newlines or other types of white
space to be correctly interpreted by programs that process the find
output. This option corresponds to the --delimiter0 option of xargs.
The option "--print0"
is equivalent to the "-
z
"
option.
public final FindOptionSet_acdfilmnorxz r
"-r"
: Use full regular expression syntax for the patterns specified by the
name operand
(This option is ignored if no name operand is specified).
The option "-r"
is equivalent to the "--
regex
"
option.
public final FindOptionSet_acdfilmnorxz regex
"--regex"
: Use full regular expression syntax for the patterns specified by the
name operand
(This option is ignored if no name operand is specified).
The option "--regex"
is equivalent to the "-
r
"
option.
public final FindOptionSet_adfilnorxz a
"-a"
: The time operand refers to the last access time of the file
(This option is ignored if no time operand is specified).
The option "-a"
is equivalent to the "--
timeAccess
"
option.
public final FindOptionSet_adfilnorxz timeAccess
"--timeAccess"
: The time operand refers to the last access time of the file
(This option is ignored if no time operand is specified).
The option "--timeAccess"
is equivalent to the "-
a
"
option.
public final FindOptionSet_cdfilnorxz c
"-c"
: The time operand refers to the creation time of the file
(This option is ignored if no time operand is specified).
The option "-c"
is equivalent to the "--
timeCreate
"
option.
public final FindOptionSet_cdfilnorxz timeCreate
"--timeCreate"
: The time operand refers to the creation time of the file
(This option is ignored if no time operand is specified).
The option "--timeCreate"
is equivalent to the "-
c
"
option.
public final FindOptionSet_dfilmnorxz m
"-m"
: The time operand refers to the last modification time of the file
(the default)
(This option is ignored if no time operand is specified).
The option "-m"
is equivalent to the "--
timeModified
"
option.
public final FindOptionSet_dfilmnorxz timeModified
"--timeModified"
: The time operand refers to the last modification time of the file
(the default)
(This option is ignored if no time operand is specified).
The option "--timeModified"
is equivalent to the "-
m
"
option.
public final FindOptionSet_acdfilmnorxz n
"-n"
: Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default)
(This option is ignored if no time operand is specified).
The option "-n"
is equivalent to the "--
timeNewer
"
option.
public final FindOptionSet_acdfilmnorxz timeNewer
"--timeNewer"
: Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default)
(This option is ignored if no time operand is specified).
The option "--timeNewer"
is equivalent to the "-
n
"
option.
public final FindOptionSet_acdfilmnorxz o
"-o"
: Consider only files that have been created, modified or accessed
before or at the time specified by the time operand
(This option is ignored if no time operand is specified).
The option "-o"
is equivalent to the "--
timeOlder
"
option.
public final FindOptionSet_acdfilmnorxz timeOlder
"--timeOlder"
: Consider only files that have been created, modified or accessed
before or at the time specified by the time operand
(This option is ignored if no time operand is specified).
The option "--timeOlder"
is equivalent to the "-
o
"
option.
public final FindOptionSet_acdimnorz d
"-d"
: Consider only directories
The option "-d"
is equivalent to the "--
typeDirectory
"
option.
public final FindOptionSet_acdimnorz typeDirectory
"--typeDirectory"
: Consider only directories
The option "--typeDirectory"
is equivalent to the "-
d
"
option.
public final FindOptionSet_acfimnorz f
"-f"
: Consider only regular files
The option "-f"
is equivalent to the "--
typeFile
"
option.
public final FindOptionSet_acfimnorz typeFile
"--typeFile"
: Consider only regular files
The option "--typeFile"
is equivalent to the "-
f
"
option.
public final FindOptionSet_acimnorxz x
"-x"
: Consider only files that are neither of directory (d),
regular file (f) or symlink (l).
The option "-x"
is equivalent to the "--
typeOther
"
option.
public final FindOptionSet_acimnorxz typeOther
"--typeOther"
: Consider only files that are neither of directory (d),
regular file (f) or symlink (l).
The option "--typeOther"
is equivalent to the "-
x
"
option.
public final FindOptionSet_acilmnorz l
"-l"
: Consider only symbolic links
The option "-l"
is equivalent to the "--
typeSymlink
"
option.
public final FindOptionSet_acilmnorz typeSymlink
"--typeSymlink"
: Consider only symbolic links
The option "--typeSymlink"
is equivalent to the "-
l
"
option.
public FindOptionSets()
Copyright © 2024. All rights reserved.