case classFSIterator(start: FSDir, depth: Int = Integer.MAX_VALUE, includeStartDir: Boolean = false) extends Iterator[Try[FSEntryImpl]] with Product with Serializable
a save file-system iterator.
it wraps every file operation in a Try.
by default, the iterator start in the given directory, and walk recursively (deep first) over all entries.
you can control the recursive level with the 'depth' argument, where 1 means only the content from the given directory.
to start with the given directory, use 'includeStartDir = true'.
a save file-system iterator.
it wraps every file operation in a
Try
.by default, the iterator start in the given directory, and walk recursively (deep first) over all entries. you can control the recursive level with the 'depth' argument, where 1 means only the content from the given directory. to start with the given directory, use 'includeStartDir = true'.
assume the following directory tree:
default behaviour
with max-depth: 2 and the start directory included
directory to start
the maximum number of directory levels to visit