Skip to main content

open_image

Function open_image 

Source
pub fn open_image(path: &Path) -> Result<Box<dyn ForensicFs + Send>>
Expand description

Open a disk-image evidence file as a mountable ForensicFs.

Transparently peels an OUTER compression wrapper (evidence.dd.gz -> dd) via archive-core — but only when the content magic AND the file extension agree, so a raw disk with coincidental magic still opens as raw — then hands the (inner or original) image to the engine’s partition-aware Vfs::open.

§Errors

Fails loud on a peel decode error, an engine open/decode error, or when the engine detects no filesystem in the evidence (InvalidData).