acquire.acquire.outputs.dir
¶
Module Contents¶
Classes¶
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.
- path¶
- 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, whileentry
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.