MCPcopy Create free account
hub / github.com/PerroEngine/Perro / list_zip_file

Function list_zip_file

perro_source/io_stack/perro_io/src/zip.rs:42–52  ·  view source on GitHub ↗
(path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

40 unix_permissions: 0o644,
41 }
42 }
43
44 pub fn executable(mut self) -> Self {
45 self.unix_permissions = 0o755;
46 self
47 }
48}
49
50pub fn write_zip_file(path: impl AsRef<Path>, entries: &[ZipEntry]) -> io::Result<()> {
51 let file = fs::File::create(path)?;
52 let mut zip = zip::ZipWriter::new(file);
53 for entry in entries {
54 let options = zip::write::SimpleFileOptions::default()
55 .compression_method(zip::CompressionMethod::Deflated)

Callers 1

listFunction · 0.85

Calls 3

lenMethod · 0.45
pushMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected