makeDirectoryIterator.d.ts
369 Bytes
/**
* Walk the provided directory tree, depth first, yielding the matched filename
* to the caller. An optional `maxDepth` argument can be provided to limit how
* deep in the file tree the search will go.
*/
export declare function makeDirectoryIterator(root: string, options?: {
maxDepth?: number;
includeDotfiles?: boolean;
}): Generator<any, void, any>;