(path)
| 28 | |
| 29 | |
| 30 | def is_safe_app_path(path): |
| 31 | suffix = path.suffix.lower() |
| 32 | if suffix not in {".lnk", ".exe"}: |
| 33 | return False |
| 34 | name = normalize_text(app_name_from_path(path)) |
| 35 | parts = {normalize_text(part) for part in path.parts} |
| 36 | return name not in BLOCKED_APPS and not (parts & BLOCKED_APPS) |
| 37 | |
| 38 | |
| 39 | def build_application_index(): |
no test coverage detected