Skip to content

Commit

Permalink
Update write_zip.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
pingfanH authored Nov 30, 2023
1 parent 41f9194 commit 99e7f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crossbundle/tools/src/commands/android/common/write_zip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use zip_extensions::write::ZipWriterExtensions;
pub fn zip_write(source_path: &Path, archive_file: &Path) -> zip::result::ZipResult<()> {
let file = std::fs::File::create(archive_file)?;
let mut zip = ZipWriter::new(file);
zip.add_directory(&source_path.to_path_buf(),FileOptions::default())?;
zip.add_directory(source_path.to_str().unwrap(),FileOptions::default())?;
Ok(())
}

Expand Down

0 comments on commit 99e7f20

Please sign in to comment.