- Description:
This key represents an array format for the
collections_config.*.globkey.The value is an array of glob pattern strings. Each string specifies a file path pattern relative to the Collection path. Globs can be positive (e.g.,
*.yml) or negative (e.g.,!**/*.json).Files are included in a Collection if they match any positive globs and do not match any negative globs.
- Appears in:
└── collections_config └── * └── glob └── Glob Array- Type:
Array<glob(glob-array)[*]>- Items:
This key represents an individual glob pattern string in the
collections_config.*.globarray.The value is a string that specifies a file path pattern relative to the Collection path. Globs can be positive (e.g.,
*.yml) or negative (e.g.,!**/*.json).Show examplesHide examples
In this example, the
dataCollection uses a negative glob pattern to exclude thesecret.ymlfile from the Collection browser.Copied to clipboardcollections_config: data: path: data glob: - '!secret.yml'{ "collections_config": { "data": { "path": "data", "glob": [ "!secret.yml" ] } } }- Examples:
In this example, the
dataCollection uses an array of glob patterns to show only.ymlfiles, except for thesecret.ymlfile.Copied to clipboardcollections_config: data: path: data glob: - '**/*.yml' - '!secret.yml'{ "collections_config": { "data": { "path": "data", "glob": [ "**/*.yml", "!secret.yml" ] } } }