[ci skip] not ready

This commit is contained in:
MisileLaboratory 2023-04-03 10:18:36 +00:00 committed by João Marcos
parent d4581090d8
commit 9e6a9cf40b

View File

@ -88,7 +88,13 @@ pub fn list_archive_contents(
}
},
SevenZip => {
unimplemented!(); // todo implement 7z list
let mut a = Vec::new();
sevenz_rust::decompress_file_with_extract_fn(archive_path, ".", |entry, _, _| {
a.push(Ok(FileInArchive{path: entry.name().into(), is_dir: entry.is_directory()}));
Ok(true)
});
Box::new(a.into_iter())
}
Gzip | Bzip | Lz4 | Lzma | Snappy | Zstd => {
panic!("Not an archive! This should never happen, if it does, something is wrong with `CompressionFormat::is_archive()`. Please report this error!");