easyidp.data.downloader.safe_extract_zip¶
- easyidp.data.downloader.safe_extract_zip(archive, dest)¶
Extract a zip archive, rejecting path-traversal members.
- Parameters:
archive (Path) – Path to the zip file.
dest (Path) – Directory to extract into.
- Raises:
RuntimeError – If any member resolves outside dest.