TraversalFilter

fun interface TraversalFilter<Path>(source)

A class that is used for path filtering while traversing a file system.

Types

Link copied to clipboard
object Companion

Contains static methods for TraversalFilter.

Functions

Link copied to clipboard
open infix fun and(other: TraversalFilter<Path>): TraversalFilter<Path>

Returns a conjunction of this filter and the other filter.

Link copied to clipboard
open suspend fun hide(path: Path, fs: FileSystemProvider.ReadOnly<Path>): Boolean

Returns true if the path is not accepted, false otherwise.

Link copied to clipboard
open infix fun or(other: TraversalFilter<Path>): TraversalFilter<Path>

Returns a disjunction of this filter and the other filter.

Link copied to clipboard
abstract suspend fun show(path: Path, fs: FileSystemProvider.ReadOnly<Path>): Boolean

Returns true if the filter accepts the path, false otherwise.