UNPKG

@plugjs/plug

Version:
29 lines 957 B
import type { AbsolutePath } from '../paths.ts'; import type { MatchOptions } from './match.ts'; /** Specific options for walking a directory */ export interface WalkOptions extends MatchOptions { /** * Whether symlinks should be followed or not. * * @defaultValue `true` */ followSymlinks?: boolean; /** * The maximum depth (in directory levels) to recurse into. * * @defaultValue `Infinity` */ maxDepth?: number; /** * Whether to allow walking any `node_modules` directory or not. * * @defaultValue `false` */ allowNodeModules?: boolean; } /** * Walk the specified directory, returning an asynchronous iterator over all * the _relative_ files found matching the specified globs and matching options. */ export declare function walk(directory: AbsolutePath, globs: string[], options?: WalkOptions): AsyncGenerator<string, void, void>; //# sourceMappingURL=walk.d.ts.map