Skip to content

FsOptions

Options for the filesystem layer — matching semantics plus on-disk resolution controls.

PropertyTypeDescriptionInherited from
absolute?booleanReturn absolute paths. Default false.-
caseInsensitive?booleanMatch paths ignoring ASCII case. Default false.Options.caseInsensitive
cwd?stringDirectory the globs resolve against. Default process.cwd().-
dot?booleanLet */** match a leading-dot segment. Default false (dotfiles are excluded).Options.dot
globstarMatchesZero?booleanA globstar between separators may span zero segments (so a/**/b matches a/b). Default true.Options.globstarMatchesZero
ignore?readonly string[]Globs to exclude from results.-
onlyFiles?booleanReturn files only (skip directories). Default true.-