list

object list extends Path => IndexedSeq[Path]

Returns all the files and folders directly within the given folder. If the given path is not a folder, raises an error. Can be called with list.stream to return an iterator. To list files recursively, use walk

For convenience os.list sorts the entries in the folder before returning them. You can disable sorted by passing in the flag sort = false.

trait Path => IndexedSeq[Path]
class Object
trait Matchable
class Any
list.type

Type members

Classlikes

object stream extends Path => Generator[Path]

Similar to os.list], except provides a os.Generator of results rather than accumulating all of them in memory. Useful if the result set is large.

Similar to os.list], except provides a os.Generator of results rather than accumulating all of them in memory. Useful if the result set is large.

Value members

Concrete methods

def apply(src: Path, sort: Boolean): IndexedSeq[Path]

Inherited methods

def andThen[A](g: IndexedSeq[Path] => A): Path => A
Inherited from:
Function1
def compose[A](g: A => Path): A => IndexedSeq[Path]
Inherited from:
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1