function walk
walk(unnamed 1?: WalkOptions): AsyncIterableIterator<WalkEntry>Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options.
Examples
Example 1
Example 1
import { walk } from "@std/fs/walk"; import { assert } from "@std/assert/assert"; for await (const entry of walk(".")) { console.log(entry.path); assert(entry.isFile); }
Parameters
optional
unnamed 1: WalkOptionsReturn Type
AsyncIterableIterator<WalkEntry>