Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/fs/walk.ts>WalkOptions

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface WalkOptions
import { type WalkOptions } from "https://deno.land/std@0.202.0/fs/walk.ts";

Properties

optional
maxDepth: number = Infinity

The maximum depth of the file tree to be walked recursively.

optional
includeFiles: boolean = true

Indicates whether file entries should be included or not.

optional
includeDirs: boolean = true

Indicates whether directory entries should be included or not.

optional
exts: string[] = undefined

List of file extensions used to filter entries. If specified, entries without the file extension specified by this option are excluded.

optional
match: RegExp[] = undefined

List of regular expression patterns used to filter entries. If specified, entries that do not match the patterns specified by this option are excluded.

optional
skip: RegExp[] = undefined

List of regular expression patterns used to filter entries. If specified, entries matching the patterns specified by this option are excluded.