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

Glob

Table of contents

Description:

This key represents a single glob pattern string format for the collections_config.*.glob key.

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

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
Type:
string
Examples:

In this example, the data Collection uses a single glob pattern to show only .yml files in the data folder or any nested folders.

Copied to clipboard
collections_config:
  data:
    path: data
    glob: '**/*.yml'
{
  "collections_config": {
    "data": {
      "path": "data",
      "glob": "**/*.yml"
    }
  }
}
Open in a new tab