Skip to content

DirectoryScanner

Nodepod API


Nodepod API / src / readdirp / DirectoryScanner

Defined in: src/polyfills/readdirp.ts:37

cfg: ScanOptions

Defined in: src/polyfills/readdirp.ts:38


handlerMap: Map<string, (…args) => void[]>

Defined in: src/polyfills/readdirp.ts:42


results: ScanEntry[]

Defined in: src/polyfills/readdirp.ts:40


rootDir: string

Defined in: src/polyfills/readdirp.ts:39


scanned: boolean

Defined in: src/polyfills/readdirp.ts:41

[asyncIterator](): AsyncIterableIterator<ScanEntry>

Defined in: src/polyfills/readdirp.ts:43

AsyncIterableIterator<ScanEntry>


applyFilter(entry, filter?): boolean

Defined in: src/polyfills/readdirp.ts:51

ScanEntry

string | string[] | ((e) => boolean)

boolean


crawl(dir, level, relative): void

Defined in: src/polyfills/readdirp.ts:50

string

number

string

void


fireEvent(event, …args): void

Defined in: src/polyfills/readdirp.ts:48

string

unknown[]

void


globMatch(filename, pattern): boolean

Defined in: src/polyfills/readdirp.ts:52

string

string

boolean


off(event, handler): this

Defined in: src/polyfills/readdirp.ts:47

string

(…args) => void

this


on(event, handler): this

Defined in: src/polyfills/readdirp.ts:45

string

(…args) => void

this


once(event, handler): this

Defined in: src/polyfills/readdirp.ts:46

string

(…args) => void

this


runScan(): void

Defined in: src/polyfills/readdirp.ts:49

void


toArray(): Promise<ScanEntry[]>

Defined in: src/polyfills/readdirp.ts:44

Promise<ScanEntry[]>