public interface LsOptions extends OptionSet<LsOption>
ls
command.
It is recommended to use Ls.Options
to specify a valid
combination of options.
The options for the ls command are:
-a | --allFiles | Lists all files in the given directory, including hidden files (those whose names start with \".\" in Unix). By default, these files are excluded from the list. | |||
-h | --humanReadable | Print sizes in human readable format. (e.g., 1K, 234M, 2G, etc.) | |||
-l | --longFormat | Long format, displaying file types, permissions, number of hard links, owner, group, size, date, and filename. | |||
-R | --recurseSubdirs | Recursively lists subdirectories encountered. | |||
-r | --reverseOrder | Reverses the order of the sort to get reverse collating sequence or oldest first. | |||
-t | --timeSorted | Sorts with the primary key being time modified (most recently modified first) and the secondary key being filename in the collating sequence. |
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 |
LsOptions.Default
Default implementation for a modifiable option set.
|
Modifier and Type | Field and Description |
---|---|
static ValueConverter<LsOptions> |
CONVERTER
Value converter for
LsOptions based on an OptionSetConverters.OptionSetConverter . |
static LsOptions |
EMPTY
Constant for an empty option set.
|
asSet, isSet, iterator, optionType, size, useAcronymFor
forEach, spliterator
static final ValueConverter<LsOptions> CONVERTER
LsOptions
based on an OptionSetConverters.OptionSetConverter
.Copyright © 2024. All rights reserved.