(item: ScanLocation)
| 66 | |
| 67 | |
| 68 | def scan_worker(item: ScanLocation) -> Generator[Detection, None, None]: |
| 69 | if not item.location.exists(): |
| 70 | logger.error(f"Location '{item.str_location}' does not exists. Skipping") |
| 71 | yield [] |
| 72 | else: |
| 73 | yield from Analyzer.run(item) |
| 74 | |
| 75 | |
| 76 | def scan_uri(uri, metadata: Union[list, dict]=None, download_only: bool=False) -> List[Detection]: |
no test coverage detected