public interface FindOptions extends OptionSet<FindOption>
find
command.
It is recommended to use Find.Options
to specify a valid
combination of options.
The options for the find command are:
-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 interface serves as an alias for the extended interface to simplify the command signature methods by avoiding generic parameters.
Modifier and Type | Interface and Description |
---|---|
static class |
FindOptions.Default
Default implementation for a modifiable option set.
|
Modifier and Type | Field and Description |
---|---|
static ValueConverter<FindOptions> |
CONVERTER
Value converter for
FindOptions based on an OptionSetConverters.OptionSetConverter . |
static FindOptions |
EMPTY
Constant for an empty option set.
|
asSet, isSet, iterator, optionType, size, useAcronymFor
forEach, spliterator
static final FindOptions EMPTY
static final ValueConverter<FindOptions> CONVERTER
FindOptions
based on an OptionSetConverters.OptionSetConverter
.Copyright © 2024. All rights reserved.