Example: -exclude "**/test/**/*.py
The pattern **/test/**/*.py is considered as Ant-style path pattern.
Let's break it down:
**/ → This means any number of directories (including none) leading up to test/.
test/ → This explicitly matches a directory named test.
**/ → Again, this means any number of directories inside the test/ directory.
*.py → This matches all .py files within those directories.
What It Does:
It targets all Python files (.py) located anywhere inside any "test" directory, no matter how deeply nested.
Examples of Matched Files:
- test/example.py
- src/test/util/helper.py
- app/module/test/something/script.py
- test/unit/test_case.py
If used with -exclude in ScanCentral:
When used in ScanCentral's -exclude option, this pattern ensures that all .py files in any test folder and its subdirectories are ignored from the scan.