BinaryLs class
For each operand that names a file of a type other than directory, ls displays its name as well as any requested, associated
information. For each operand that names a file of type directory, ls displays the names of files contained within that
directory, as well as any requested, associated information.///
If no operands are given, the contents of the current directory are displayed. If more than one operand is given, non-direc-
tory operands are displayed first; directory and non-directory operands are sorted separately and in lexicographical order.///
The following options are available:
ls -ABCFGHLOPRSTUW@abcdefghiklmnopqrstuwx1
file ...
The ls utility exits 0 on success, and >0 if an error occurs.
Constructors
- BinaryLs()
Properties
- A ↔ String
-
List all entries except for . and ... Always set for the super-user.
getter/setter pair
- a ↔ String
-
Include directory entries whose names begin with a dot (.).
getter/setter pair
- at_ ↔ String
-
Display extended attribute keys and sizes in long (-l) output.
getter/setter pair
- B ↔ String
-
Force printing of non-printable characters (as defined by ctype(3) and current locale settings) in file names as \xxx, where xxx is the numeric value of the character in octal.
getter/setter pair
- b ↔ String
-
As -B, but use C escape codes whenever possible.
getter/setter pair
- binaryName ↔ String
-
getter/setter pair
- C ↔ String
-
Force multi-column output; this is the default when output is to a terminal.
getter/setter pair
- c ↔ String
-
Use time when file status was last changed for sorting (-t) or long printing (-l).
getter/setter pair
- d ↔ String
-
Directories are listed as plain files (not searched recursively).
getter/setter pair
- e ↔ String
-
Print the Access Control List (ACL) associated with the file, if present, in long (-l) output.
getter/setter pair
- F ↔ String
-
Display a slash (
/') immediately after each pathname that is a directory, an asterisk (
*') after each that is exe- cutable, an at sign (@') after each symbolic link, an equals sign (
=') after each socket, a percent sign (%') after each whiteout, and a vertical bar (
|') after each that is a FIFO.getter/setter pair - f ↔ String
-
Output is not sorted. This option turns on the -a option.
getter/setter pair
- G ↔ String
-
Enable colorized output. This option is equivalent to defining CLICOLOR in the environment. (See below.)
getter/setter pair
- g ↔ String
-
This option is only available for compatibility with POSIX; it is used to display the group name in the long (-l) for-
mat output (the owner name is suppressed).
getter/setter pair
- H ↔ String
-
Symbolic links on the command line are followed. This option is assumed if none of the -F, -d, or -l options are
specified.
getter/setter pair
- h ↔ String
-
When used with the -l option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to
reduce the number of digits to three or less using base 2 for sizes.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- i ↔ String
-
For each file, print the file's file serial number (inode number).
getter/setter pair
- k ↔ String
-
If the -s option is specified, print the file size allocation in kilobytes, not blocks. This option overrides the
environment variable BLOCKSIZE.
getter/setter pair
- L ↔ String
-
Follow all symbolic links to final target and list the file or directory the link references rather than the link
itself. This option cancels the -P option.
getter/setter pair
- l ↔ String
-
The lowercase letter ``ell''.) List in long format. (See below.) If the output is to a terminal, a total sum for
getter/setter pair
- m ↔ String
-
Stream output format; list files across the page, separated by commas.
getter/setter pair
- n ↔ String
-
Display user and group IDs numerically, rather than converting to a user or group name in a long (-l) output. This
option turns on the -l option.
getter/setter pair
- O ↔ String
-
Include the file flags in a long (-l) output.
getter/setter pair
- o ↔ String
-
List in long format, but omit the group id.
getter/setter pair
- one ↔ String
-
(The numeric digit ``one''.) Force output to be one entry per line. This is the default when output is not to a terminal.
getter/setter pair
- P ↔ String
-
If argument is a symbolic link, list the link itself rather than the object the link references. This option cancels
the -H and -L options.
getter/setter pair
- p ↔ String
-
Write a slash (`/') after each filename if that file is a directory.
getter/setter pair
- q ↔ String
-
Force printing of non-graphic characters in file names as the character `?'; this is the default when output is to a
terminal.
getter/setter pair
- R ↔ String
-
Recursively list subdirectories encountered.
getter/setter pair
- r ↔ String
-
Reverse the order of the sort to get reverse lexicographical order or the oldest entries first (or largest files last,
if combined with sort by size
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- S ↔ String
-
Sort files by size
getter/setter pair
- s ↔ String
-
Display the number of file system blocks actually used by each file, in units of 512 bytes, where partial units are
rounded up to the next integer value. If the output is to a terminal, a total sum for all the file sizes is output on
a line before the listing. The environment variable BLOCKSIZE overrides the unit size of 512 bytes.
getter/setter pair
- T ↔ String
-
When used with the -l (lowercase letter ``ell'') option, display complete time information for the file, including
month, day, hour, minute, second, and year.
getter/setter pair
- t ↔ String
-
Sort by time modified (most recently modified first) before sorting the operands by lexicographical order.
getter/setter pair
- U ↔ String
-
Use time of file creation, instead of last modification for sorting (-t) or long output (-l).
getter/setter pair
- u ↔ String
-
Use time of last access, instead of last modification of the file for sorting (-t) or long printing (-l).
getter/setter pair
- v ↔ String
-
Force unedited printing of non-graphic characters; this is the default when output is not to a terminal.
getter/setter pair
- W ↔ String
-
Display whiteouts when scanning directories. (-S) flag).
getter/setter pair
- w ↔ String
-
Force raw printing of non-printable characters. This is the default when output is not to a terminal.
getter/setter pair
- x ↔ String
-
The same as -C, except that the multi-column output is produced with entries sorted across, rather than down, the col-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited