Walks a directory recursively and returns a LsSeq of all its contents.
Walks a directory recursively and returns a LsSeq of all its contents.
Skip certain files or folders from appearing in the output. If you skip a folder, its entire subtree is ignored
Whether you want a folder to appear before or after its
contents in the final sequence. e.g. if you're deleting
them recursively you want it to be false so the folder
gets deleted last, but if you're copying them recursively
you want preOrder
to be true
so the folder gets
created first.
Make the common case of looking around the current directory fast by letting the user omit the argument if there's one in scope
Make the common case of looking around the current directory fast by letting the user omit the argument if there's one in scope
Returns a lazy Iterator instead of an eager sequence of results.
Returns a lazy Iterator instead of an eager sequence of results.
List the files and folders in a directory. Can be called with
.iter
to return an iterator, or.rec
to recursively list everything in subdirectories..rec
is a ls.Walker which means that apart from straight-forwardly listing everything, you can pass in askip
predicate to cause your recursion to skip certain files or folders.