Check if directory should be skipped from traversal.
(name: str)
| 61 | """ |
| 62 | |
| 63 | def _should_skip_dir(name: str) -> bool: |
| 64 | """Check if directory should be skipped from traversal.""" |
| 65 | return name in SKIP_DIR_NAMES or any( |
| 66 | name.startswith(pfx) for pfx in SKIP_DIR_PREFIXES |
| 67 | ) |
| 68 | |
| 69 | max_mtime = 0.0 |
| 70 | stack = [str(root)] |