pub fn extract(
archive: impl Read,
top: &str,
dest: &Path,
) -> Result<u64, String>Expand description
Unpack the archive of one path of a session (what docker cp gives) into dest. top is the one name the archive
may hold at its root (<sid>.jsonl or <sid>). Only regular files and folders, only under top: a link, a device,
a name that climbs out or a second root is an error and leaves nothing to trust. Returns how many bytes it wrote.