Filtering files
codemap decides which files to include in this order:
- Discover files under the root directory.
- Apply include patterns (
--include,-i). - Apply exclude patterns (
--exclude,-e). - Skip files larger than the size limit (
--max-file-size,-m).
Include and exclude
Patterns use glob syntax and are matched against paths relative to the root. Separate multiple patterns with commas.
codemap --include "src/**/*.cs,tests/**/*.cs"
codemap --exclude "**/bin/**,**/obj/**"Size limit
codemap --max-file-size 1048576Empty directories
Empty directories are listed in the output when they pass the include and exclude rules. An empty directory that matches no include pattern is omitted.
Built-in exclusions
These directory names are always skipped at any depth: .git, bin, obj, node_modules, dist, and coverage.