getDirectoryContents package:directory-ospath-streaming
Recursively list all the files and directories in a directory and all
subdirectories.
The directory structure is traversed depth-first.
The result is generated lazily so is not well defined if the source
directory structure changes before the list is fully consumed.
Symlinks within directory structure may cause result to be infinitely
long.
Recursively list all the files and directories that satisfy given
predicate in a directory and all subdirectories. Descending into some
subdirectories may be avoided by filtering them out with a visiting
predicate.
Not visited directory entry may still be reported depending on the
collection predicate.
The directory structure is traversed depth-first.
The result is generated lazily so is not well defined if the source
directory structure changes before the list is fully consumed.
Symlinks within directory structure may cause result to be infinitely
long, but they can be filtered out with a suitable directory visiting
predicate.