Files
toolkit/packages/glob/src/internal-glob-options.ts
T

40 lines
957 B
TypeScript
Raw Normal View History

2020-01-09 15:05:31 -05:00
/**
* Options to control globbing behavior
*/
export interface GlobOptions {
2019-12-31 10:16:18 -05:00
/**
2020-01-09 15:05:31 -05:00
* Indicates whether to follow symbolic links. Generally should set to false
* when deleting files.
2019-12-31 10:16:18 -05:00
*
* @default true
*/
followSymbolicLinks?: boolean
/**
* Indicates whether directories that match a glob pattern, should implicitly
* cause all descendant paths to be matched.
*
* For example, given the directory `my-dir`, the following glob patterns
* would produce the same results: `my-dir/**`, `my-dir/`, `my-dir`
*
* @default true
*/
implicitDescendants?: boolean
2021-06-01 12:57:03 -07:00
/**
* Indicates whether matching directories should be included in the
* result set.
*
* @default true
*/
matchDirectories?: boolean
2019-12-31 10:16:18 -05:00
/**
* Indicates whether broken symbolic should be ignored and omitted from the
* result set. Otherwise an error will be thrown.
*
* @default true
*/
omitBrokenSymbolicLinks?: boolean
}