:py:mod:`dissect.hypervisor.util.vmtar` ======================================= .. py:module:: dissect.hypervisor.util.vmtar Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.hypervisor.util.vmtar.VisorTarInfo dissect.hypervisor.util.vmtar.VisorTarFile Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.hypervisor.util.vmtar.open dissect.hypervisor.util.vmtar.is_tarfile .. py:class:: VisorTarInfo(name='') Bases: :py:obj:`tarfile.TarInfo` Implements TarInfo for use with Visor Tar files (vmtar). The main difference is that file data is located at the end of the tar file, on an offset specified in the header. .. py:attribute:: is_visor :type: bool .. py:attribute:: offset_data :type: int | None .. py:attribute:: textPgs :type: int | None .. py:attribute:: fixUpPgs :type: int | None .. py:method:: frombuf(buf: bytes, encoding: str, errors: str) -> VisorTarInfo :classmethod: Construct a TarInfo object from a 512 byte bytes object. .. py:class:: VisorTarFile(*args, **kwargs) Bases: :py:obj:`tarfile.TarFile` The TarFile Class provides an interface to tar archives. .. py:method:: visoropen(name: str, mode: str = 'r', fileobj: BinaryIO | None = None, **kwargs) -> VisorTarFile :classmethod: Open a visor tar file for reading. Supports gzip and lzma compression. .. py:attribute:: OPEN_METH :type: Final[dict[str, str]] .. py:data:: open .. py:data:: is_tarfile