public final class Ls extends Cloneable2<Ls>
| Constructor and Description |
|---|
Ls() |
| Modifier and Type | Method and Description |
|---|---|
void |
$()
Lists the members of the current working directory.
|
void |
$(Collection<File> files)
Prints information about the files.
|
void |
$(File... files)
Lists the files which are not directories, then for all files which are
directories:
One empty line
The path of the directory
The names of the directory members (one per line)
|
Ls |
c()
with -lt: sort by, and show, ctime (time of last modification of file status information); with -l: show ctime
and sort by name; otherwise: sort by ctime, newest first.
|
Ls |
d()
List directories themselves, not their contents.
|
Ls |
dateFormat(DateFormat dateFormat)
With
l(), show times using the dateFormat. |
Ls |
l()
Use a long listing format.
|
Ls |
S()
Sort by file size.
|
Ls |
sort(String word)
Sort by word instead of name: "
none" (-U), "size" (-S), "time" (-t), "version" (-v), "extension" (-X). |
Ls |
t()
Sort by modification time, newest first.
|
Ls |
u()
With
l(). |
Ls |
U()
Do not sort; list entries in directory order,
|
Ls |
X()
Sort alphabetically by entry extension.
|
clone2public Ls c()
public Ls d()
public Ls dateFormat(DateFormat dateFormat)
l(), show times using the dateFormat.dateFormat - E.g. a SimpleDateFormatpublic Ls l()
The default format for rendering dates is JshBase.dateTimeFormat().
public Ls S()
public Ls sort(String word)
none" (-U), "size" (-S), "time" (-t), "version" (-v), "extension" (-X).public Ls t()
public Ls u()
public Ls U()
public Ls X()
public void $()
public void $(File... files)
public void $(Collection<File> files)
Copyright © 2016. All rights reserved.