(path)
| 328 | |
| 329 | |
| 330 | def is_protected_file_path(path): |
| 331 | path_str = str(path) |
| 332 | ext = normalize_ext(os.path.splitext(path_str)[1]) |
| 333 | if ext in SAFE_SKIP_EXTS: |
| 334 | return True |
| 335 | parts = [p.lower() for p in Path(path_str).parts] |
| 336 | return any(p in PROTECTED_DIR_NAMES for p in parts) |
| 337 | |
| 338 | |
| 339 | def apply_startup_setting(config): |
no test coverage detected