Bun

interface

fs.GlobOptionsWithFileTypes

interface GlobOptionsWithFileTypes

  • cwd?: string

    Current working directory.

  • exclude?: readonly string[] | (fileName: Dirent) => 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.

  • withFileTypes: true

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