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

Function write_files

perro_source/api_modules/perro_modules/src/zip.rs:25–38  ·  view source on GitHub ↗
(path: P, files: &[(&str, &str)])

Source from the content-addressed store, hash-verified

23 perro_io::read_zip_file_entry(path, name)
24}
25
26pub fn read_entry_with_limits<P: ResPathSource>(
27 path: P,
28 name: &str,
29 limits: ZipLimits,
30) -> io::Result<Vec<u8>> {
31 let path = readable_disk_path(path.as_res_path_str())?;
32 perro_io::read_zip_file_entry_with_limits(path, name, limits)
33}
34
35pub fn extract_all<P: ResPathSource, O: ResPathSource>(path: P, output_dir: O) -> io::Result<()> {
36 let path = readable_disk_path(path.as_res_path_str())?;
37 let output_dir = writable_disk_path(output_dir.as_res_path_str())?;
38 perro_io::extract_zip_file(path, output_dir)
39}
40
41pub fn extract_all_with_limits<P: ResPathSource, O: ResPathSource>(

Callers

nothing calls this directly

Calls 6

writable_file_pathFunction · 0.85
readable_disk_pathFunction · 0.85
write_zip_fileFunction · 0.85
as_res_path_strMethod · 0.80
parentMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected