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

std/fs/walk.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.86.0/fs/walk.ts";

Functions

Create WalkEntry for the path asynchronously

Create WalkEntry for the path synchronously

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient.

Same as walk() but uses synchronous ops