Glob Patterns
A glob pattern describes which files or folders to select. Patterns can combine wildcards, directory traversal, and exclusion rules. This guide explains the supported syntax and provides usage examples.
Supported Syntax
The following table summarizes the glob pattern features available in Kampose:
| Pattern | Meaning |
|---|---|
* | Matches any number of characters in a name |
** | Matches any number of directory levels |
.. | Refers to the parent directory |
!pattern | Excludes files or directories matching the pattern |
/ | Directory separator (use forward slash only) |
Use these features to build patterns that match specific files, groups of files, or entire directory trees.
Usage Examples
The following examples show how to use glob patterns in Kampose configuration files:
src/**/*.dllmatches all assembly files insrcand its subdirectories.docs/*matches all files directly under thedocsfolder.**/*.xmlmatches all XML files anywhere in the project.!tests/**excludes all files in anytestsfolder.assets/images/*.pngmatches all PNG images inassets/images.../shared/**/*.mdmatches all Markdown files in a siblingsharedfolder.
Notes
- Patterns are case-insensitive.
- Exclusion patterns override inclusion patterns if both match the same file.
- Use forward slashes (
/) for directory separators, even on Windows. - If a pattern does not specify a file extension, Kampose may append a default extension depending on context.
For more details, see the Microsoft File Globbing documentation.
