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

Function write_zip_file

perro_source/io_stack/perro_io/src/zip.rs:26–40  ·  view source on GitHub ↗
(path: impl AsRef<Path>, entries: &[ZipEntry])

Source from the content-addressed store, hash-verified

24 max_compression_ratio: DEFAULT_MAX_COMPRESSION_RATIO,
25 }
26 }
27}
28
29pub struct ZipEntry {
30 pub source: PathBuf,
31 pub name: String,
32 pub unix_permissions: u32,
33}
34
35impl ZipEntry {
36 pub fn new(source: impl Into<PathBuf>, name: impl Into<String>) -> Self {
37 Self {
38 source: source.into(),
39 name: name.into(),
40 unix_permissions: 0o644,
41 }
42 }
43

Callers 1

write_filesFunction · 0.85

Calls 2

finishMethod · 0.80
createFunction · 0.50

Tested by

no test coverage detected