☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

glob(glob-array)[*]

Table of contents

Description:

This key represents an individual glob pattern string in the collections_config.*.glob array.

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).

Appears in:
└── collections_config
    └── *
        └── glob
            └── Glob Array
                └── [*]
Type:
string
Examples:

In this example, the data Collection uses a negative glob pattern to exclude the secret.yml file from the Collection browser.

Copied to clipboard
collections_config:
  data:
    path: data
    glob:
      - '!secret.yml'
{
  "collections_config": {
    "data": {
      "path": "data",
      "glob": [
        "!secret.yml"
      ]
    }
  }
}
Open in a new tab