acquire.acquire.outputs.dir

Module Contents

Classes

DirectoryOutput

Base class to implement acquire output formats with.

class acquire.acquire.outputs.dir.DirectoryOutput(path: pathlib.Path, **kwargs)

Bases: acquire.outputs.base.Output

Base class to implement acquire output formats with.

New output formats must sub-class this class.

write(output_path: str, fh: BinaryIO, entry: dissect.target.filesystem.FilesystemEntry | pathlib.Path | None = None, size: int | None = None) None

Write a file-like object to a directory.

The data from fh is written, while entry is used to get some properties of the file.

On Windows platforms : is replaced with _ in the output_path.

Parameters:
  • output_path – The path of the entry in the output.

  • fh – The file-like object of the entry to write.

  • entry – The optional filesystem entry to write.

  • size – The optional file size in bytes of the entry to write.

close() None

Closes the output.