Function globSync

  • Retrieves the files matching the specified pattern.

    Parameters

    • pattern: string | string[]

    Returns string[]

  • Retrieves the files matching the specified pattern.

    Parameters

    • pattern: string | string[]
    • options: GlobOptionsWithFileTypes

    Returns Dirent[]

  • Retrieves the files matching the specified pattern.

    Parameters

    • pattern: string | string[]
    • options: GlobOptionsWithoutFileTypes

    Returns string[]

  • Retrieves the files matching the specified pattern.

    Parameters

    • pattern: string | string[]
    • options: GlobOptions

    Returns Dirent[] | string[]