Args

data class Args(val absolutePath: String, val depth: Int = 1, val filter: String? = null)(source)

Specifies which directory to list and how to traverse its contents.

Constructors

Link copied to clipboard
constructor(absolutePath: String, depth: Int = 1, filter: String? = null)

Properties

Link copied to clipboard

absolute filesystem path to the target directory

Link copied to clipboard
val depth: Int

how many levels deep to traverse (1 = direct children only, 2 = include subdirectories, etc.), defaults to 1; single-child directory chains may be collapsed without consuming depth

Link copied to clipboard

optional glob pattern (case-insensitive) matched against normalized relative paths (from absolutePath) using / as a separator; defaults to null (no filtering)