list
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
.
Type members
Classlikes
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.