mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +00:00
[ci skip] not ready
This commit is contained in:
parent
d4581090d8
commit
9e6a9cf40b
@ -88,7 +88,13 @@ pub fn list_archive_contents(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
SevenZip => {
|
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 => {
|
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!");
|
panic!("Not an archive! This should never happen, if it does, something is wrong with `CompressionFormat::is_archive()`. Please report this error!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user