Skip to main content

in_dir

Function in_dir 

Source
pub fn in_dir(token: &str, path: &str) -> bool
Expand description

Does path fall under a dir/**/*.ext token? The prefix is a whole directory, so claude-plugin/**/*.md covers claude-plugin/a/b.md and never claude-plugin-old/b.md. Malformed tokens are refused by the manifest before they reach here; a built-in never writes one.