← Về thư mục
openai4s/compute/safe_archive.py
- UnsafeArchiveError · class · L37-L38 — class UnsafeArchiveError(Exception)
- _reject · function · L41-L42 — def _reject(name: str, reason: str) -> "UnsafeArchiveError"
- _validate_name · function · L45-L67 — def _validate_name(member: tarfile.TarInfo, dest: Path) -> Path
- _validate_type · function · L70-L76 — def _validate_type(member: tarfile.TarInfo) -> None
- safe_extract_tar · function · L79-L186 — def safe_extract_tar( archive: Path, dest: Path, *, max_files: int = DEFAULT_MAX_FILES, max_file_bytes: int = DEFAULT_MAX_FILE_BYTES, max_total_bytes: int = DEFAULT_MAX_TOTAL_BYTES, max_ratio: int = DEFAULT_MAX_RATIO, ) -> list[Path]