Bun

interface

fs.GlobOptionsWithoutFileTypes

interface GlobOptionsWithoutFileTypes

  • cwd?: string | URL

    Current working directory.

  • exclude?: readonly string[] | (fileName: string) => boolean

    Function to filter out files/directories or a list of glob patterns to be excluded. If a function is provided, return true to exclude the item, false to include it. If a string array is provided, each string should be a glob pattern that specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are not supported.

  • withFileTypes?: false

    true if the glob should return paths as Dirents, false otherwise.