feat: commit unzip_file function

This commit is contained in:
mrxiaozhuox committed 2022-08-13 15:21:34 -07:00
1 parent d8506301eb
commit b28043a944
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -313,7 +313,7 @@ impl Tool {
}
}
fn extract_zip(file: &Path, target: &Path) -> anyhow::Result<()> {
pub fn extract_zip(file: &Path, target: &Path) -> anyhow::Result<()> {
let zip_file = std::fs::File::open(&file)?;
let mut zip = zip::ZipArchive::new(zip_file)?;