Pexclude
Bun

property

fs.GlobOptions.exclude

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