fs-iterator
Version:
A file system iterator with filter and asyncIterator iterafaces. Supports Node 0.10 and above
16 lines (15 loc) • 451 B
text/typescript
import StackBaseIterator from 'stack-base-iterator';
import type { Entry, IteratorOptions } from './types.js';
export default class FSIterator extends StackBaseIterator<Entry> {
static EXPECTED_ERRORS: string[];
root: string;
depth: number;
readdirOptions: {
encoding: string;
withFileTypes: boolean;
};
statOptions: {
bigint: boolean;
};
constructor(root: string, options?: IteratorOptions);
}