Glob Pattern Guide with auditor

All glob patterns in auditor must be enclosed with double quotes, like :

auditor hash input_path -i "**/*.txt"

Bellow the rules to use glob patterns:

Basic Wildcards

* - Match any characters (except /)

? - Match exactly one character

** - Match any number of directories

Character Classes

[...] - Match one character from set

[!...] - Match one character NOT in set

Alternation

{a,b,c} - Match any of the alternatives

Common Examples

# Configuration files
*.{json,yaml,toml,ini}

# Source code (excluding tests)
src/**/*.rs

# All documentation
**/*.{md,txt,rst}

# Test files
{tests,test}/**/*.rs
**/*_test.rs
**/test_*.rs

# Ignore hidden files
[!.]*

# Images
**/*.{png,jpg,jpeg,gif,svg,webp}

# Nested package files
**/Cargo.toml
**/package.json

# Everything in a specific directory
assets/**

# Files at specific depth
*/*.rs      # One level deep
*/*/*.rs    # Two levels deep

Negation Patterns (Wax-specific)

Wax supports negation with !:

# Match all Rust files except in target/
{**/*.rs,!target/**}

# Match all files except hidden ones
{**,!**/.*}

Tips