Documentation
¶
Index ¶
Constants ¶
View Source
const ( LsAll lsAllFlag = true LsNoAll lsAllFlag = false )
View Source
const ( LsRecursive lsRecursiveFlag = true LsNoRecursive lsRecursiveFlag = false )
View Source
const ( LsLongFormat lsLongFormatFlag = true LsNoLongFormat lsLongFormatFlag = false )
Variables ¶
This section is empty.
Functions ¶
func Ls ¶
Ls returns a Source that lists the entries of a directory, one name per item. Entries are emitted in the lexical order afero.ReadDir guarantees. By default, entries whose names start with "." are hidden.
Options:
- LsAll (-a): also list entries whose names start with ".".
- LsRecursive (-R): walk subdirectories, emitting paths relative to the root.
- LsLongFormat (-l): emit "<perm> <size> <name>" per entry.
- LsFs: read from a custom afero.Fs (defaults to the OS filesystem).
Types ¶
Click to show internal directories.
Click to hide internal directories.