Check if a directory is valid for scanning.
(dir: Path)
| 421 | |
| 422 | |
| 423 | def _is_valid_dir(dir: Path) -> bool: |
| 424 | """Check if a directory is valid for scanning.""" |
| 425 | if not dir.exists(): |
| 426 | return False |
| 427 | if not dir.is_dir(): |
| 428 | return False |
| 429 | if dir.is_symlink(): |
| 430 | return False |
| 431 | if dir.name in FILES_TO_IGNORE: |
| 432 | return False |
| 433 | return True |
| 434 | |
| 435 | |
| 436 | def _scan_dir(dir: Path, repo_type: str, inplace: bool = False): |