Interface: GlobOptions
The options of Glob and GlobSync.
Properties
absolute?
optionalabsolute?:boolean
Give absolute paths. When false, the results of a relative pattern are relative to cwd, and the results of an absolute pattern are absolute.
Default
falsecwd?
optionalcwd?:string
The directory the relative patterns are resolved from and the relative results are relative to; a relative cwd is resolved from the current directory.
Default
process.cwd()dot?
optionaldot?:boolean
Let the wildcards (*, **, ?, [...]) match the names starting with a dot. A pattern segment starting with a dot (.config/*) matches them anyway.
Default
falsefollow?
optionalfollow?:boolean
Follow the symbolic links to directories while expanding **; a link not followed is still matched by a trailing **. The links named by the other segments are always followed, and a link cycle is walked once.
Default
falseignore?
optionalignore?:string|string[]
The patterns of the paths to exclude from the results, matched against the paths relative to cwd with / separators (a leading ./ is dropped). They match the names starting with a dot, and dir/** excludes dir and everything under it. Excluded directories are still walked.
Default
nonenocase?
optionalnocase?:boolean
Match the names case-insensitively.
Default
true on macOS and Windows (whose file systems usually are case-insensitive), false elsewherenodir?
optionalnodir?:boolean
Give the files only (and the other entries which are not directories), not the directories.
Default
false