1. Context ~/.config/codecat/config.toml ... exclude_patterns = [ "*.log", # Exclude all log files "sample-docs/*", "dist/*", # Exclude build output directory contents "node_modules/*", # Exclude node_modules "venv/*", # Exclude python virtual envs ".git/*", # Exclude git directory contents (often handled by gitignore too) "__pycache__/*", ".pytest_cache/*", "*.pyc", "*.pyo", "temp/", # Exclude a directory named temp (relative to target) "specific_file_to_exclude.txt" ] 2. Action: codecat -d backend -o backend.txt -x backend/test/sample-docs/ or codecat -d backend -o backend.txt -x backend/test/sample-docs 3. Observed: sample-docs and its files are still in tree printout and backend.txt
~/.config/codecat/config.toml
...
exclude_patterns = [
".log", # Exclude all log files
"sample-docs/",
"dist/", # Exclude build output directory contents
"node_modules/", # Exclude node_modules
"venv/", # Exclude python virtual envs
".git/", # Exclude git directory contents (often handled by gitignore too)
"pycache/",
".pytest_cache/",
".pyc",
".pyo",
"temp/", # Exclude a directory named temp (relative to target)
"specific_file_to_exclude.txt"
]
or codecat -d backend -o backend.txt -x backend/test/sample-docs