list
os.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.
Attributes
- Graph
-
- Supertypes
- Self type
-
list.type
Members list
In this article