dir_exists
Directory counterpart of file_exists. Every match must correspond to a real directory in the walked tree.
- id: docs-dir-exists kind: dir_exists paths: "docs" root_only: true level: errorOptional git_tracked_only: true further requires that the directory contain at least one tracked file. A tree with a docs/ checked out from a stale clone where every file was later removed via git rm would fail under this stricter check. See The walker and .gitignore for the full semantics.