Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
aspizu committed Jan 3, 2025
1 parent cc0e1ec commit f193126
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/codegen/srcpkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ where T: io::Write + io::Seek
}

fn create_zipped_srcpkg(input: &Path, output: &Path) -> io::Result<Vec<u8>> {
let output = output
.parent()
.unwrap()
.canonicalize()
.unwrap()
.join(output.file_name().unwrap());
let mut zip = ZipWriter::new(Cursor::new(Vec::new()));
for entry in WalkDir::new(input).into_iter().flatten() {
if !entry.metadata().is_ok_and(|metadata| metadata.is_file()) {
Expand Down

0 comments on commit f193126

Please sign in to comment.