WalkOptions

fs2.io.file.WalkOptions
See theWalkOptions companion object
sealed trait WalkOptions

Options that customize a filesystem walk via Files[F].walk.

Attributes

Companion
object
Source
WalkOptions.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Indicates whether to allow cycles when following links.

Indicates whether to allow cycles when following links. If true, any link causing a cycle is emitted as the link path. If false, a cycle results in walk failing with a FileSystemLoopException.

Attributes

Source
WalkOptions.scala
def chunkSize: Int

Size of chunks emitted from the walk.

Size of chunks emitted from the walk.

Implementations *may* use this for optimization, batching file system operations.

A chunk size of 1 hints to the implementation to use the maximally laziness in file system access, emitting a single path at a time.

A chunk size of Int.MaxValue hints to the implementation to perform all file system operations at once, emitting a single chunk with all paths.

Attributes

Source
WalkOptions.scala
def maxDepth: Int

Maximum depth to walk.

Maximum depth to walk. A value of 0 results in emitting just the starting path. A value of 1 results in emitting the starting path and all direct descendants.

Attributes

Source
WalkOptions.scala

Returns a new WalkOptions with the specified value for allowCycles.

Returns a new WalkOptions with the specified value for allowCycles.

Attributes

Source
WalkOptions.scala
def withChunkSize(chunkSize: Int): WalkOptions

Returns a new WalkOptions with the specified chunk size.

Returns a new WalkOptions with the specified chunk size.

Attributes

Source
WalkOptions.scala
def withMaxDepth(maxDepth: Int): WalkOptions

Returns a new WalkOptions with the specified max depth.

Returns a new WalkOptions with the specified max depth.

Attributes

Source
WalkOptions.scala