Documentation
¶
Overview ¶
Package ls implements the ls core utility, following the GNU manual.
It writes the name of every file given, and the names of the files contained in every directory given, defaulting to the working directory. The default output is one entry per line, as specified for output that isn't written to a terminal; on a terminal the entries fill the columns instead, their nongraphic characters are hidden, and their names are quoted the way the shell reads them.
Names are compared byte by byte, which is the collating sequence of the C locale, the only one here: no utility of this project implements the collating sequences of other locales. The fields of the long format are aligned the way GNU aligns them, and the timestamps and the quoted names are written as the C locale writes them.
The file system abstraction used here doesn't carry owners, so a file whose system information isn't available, like in a memory file system, is written with the numeric identifier zero for its owner and group, a link count of one, and no file serial number, and has its blocks measured by its size. Character and block special files are written with their size, as no device numbers are available either, and the birth time a system doesn't report is written as a question mark. Directory entries dot and dot-dot aren't reported by the Go file systems, so -A and -a are equivalent, and -f keeps the order the file system reports when it can, which a memory file system never can.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.