listRecursively

expect open fun listRecursively(dir: Path, followSymlinks: Boolean = false): Sequence<Path>

Returns a sequence that lazily traverses the children of dir using repeated calls to list. If none of dir's children are directories this returns the same elements as list.

The returned sequence visits the tree of files in depth-first order. Parent paths are returned before their children.

Note that listRecursively does not throw exceptions but the returned sequence does. When it is iterated, the returned sequence throws a FileNotFoundException if dir does not exist, or an IOException if dir cannot be listed.

Parameters

followSymlinks

true to follow symlinks while traversing the children. If dir itself is a symlink it will be followed even if this parameter is false.

actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>