Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yaml_wasm/scripts/deps.ts>fs.walk

WebAssembly module to parse YAML
Latest
function fs.walk
Re-export
import { fs } from "https://deno.land/x/yaml_wasm@deno-v0.41.0/scripts/deps.ts";
const { walk } = fs;

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.

Options:

  • maxDepth?: number = Infinity;

  • includeFiles?: boolean = true;

  • includeDirs?: boolean = true;

  • followSymlinks?: boolean = false;

  • exts?: string[];

  • match?: RegExp[];

  • skip?: RegExp[];

    for await (const { filename, info } of walk(".")) { console.log(filename); assert(info.isFile); };

Parameters

root: string
optional
unnamed 1: WalkOptions = [UNSUPPORTED]

Returns

AsyncIterableIterator<WalkEntry>