• Traverse the file system and return pathnames that match the given pattern.

    Parameters

    • pattern: string | string[]

      A glob pattern or an array of glob patterns.

    • Optional options: Options

      Options for the glob.

    Returns Promise<string[]>

    A promise that resolves to an array of pathnames that match the given pattern.