deno.com

function glob

Overload 1

#glob(
pattern: string | string[],
callback: (
err: ErrnoException | null,
matches: string[],
) => void
,
): void

Retrieves the files matching the specified pattern.

Parameters #

#pattern: string | string[]
#callback: (
err: ErrnoException | null,
matches: string[],
) => void

Return Type #

void

Overload 2

#glob(
pattern: string | string[],
callback: (
err: ErrnoException | null,
matches: Dirent[],
) => void
,
): void

Parameters #

#pattern: string | string[]
#callback: (
err: ErrnoException | null,
matches: Dirent[],
) => void

Return Type #

void

Overload 3

#glob(
pattern: string | string[],
callback: (
err: ErrnoException | null,
matches: string[],
) => void
,
): void

Parameters #

#pattern: string | string[]
#callback: (
err: ErrnoException | null,
matches: string[],
) => void

Return Type #

void

Overload 4

#glob(
pattern: string | string[],
options: GlobOptions,
callback: (
err: ErrnoException | null,
matches: Dirent[] | string[],
) => void
,
): void

Parameters #

#pattern: string | string[]
#options: GlobOptions
#callback: (
err: ErrnoException | null,
matches: Dirent[] | string[],
) => void

Return Type #

void