:py:mod:`acquire.acquire.outputs.zip` ===================================== .. py:module:: acquire.acquire.outputs.zip Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: acquire.acquire.outputs.zip.ZipOutput .. py:class:: ZipOutput(path: pathlib.Path, compress: bool = False, encrypt: bool = False, public_key: Optional[bytes] = None) Bases: :py:obj:`acquire.outputs.base.Output` Zip archive acquire output format. Output can be compressed and/or encrypted. :param path: The path to write the zip archive to. :param compress: Whether to compress the zip archive. :param encrypt: Whether to encrypt the zip archive. :param public_key: The RSA public key to encrypt the header with. .. py:method:: write(output_path: str, fh: BinaryIO, entry: Optional[Union[dissect.target.filesystem.FilesystemEntry, pathlib.Path]] = None, size: Optional[int] = None) -> None Write a filesystem entry or file-like object to a zip file. :param output_path: The path of the entry in the output format. :param fh: The file-like object of the entry to write. :param entry: The optional filesystem entry of the entry to write. :param size: The optional file size in bytes of the entry to write. .. py:method:: close() -> None Closes the archive file.