Extract the jffs2 image to the specified directory
Rust
let path = Path::new("path/to/image.jffs2");
let output_path = Path::new("/tmp/some/where");
extract_jffs2(path, output_path).expect("Failed to extract file");
List all entries only
Rust
let path = Path::new("path/to/image.jffs2");
let entries = list_jffs2(path).expect("Failed to list entries");
println!("{:?}", entries);