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

Function readable_disk_path

perro_source/api_modules/perro_modules/src/zip.rs:40–49  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

38 perro_io::extract_zip_file(path, output_dir)
39}
40
41pub fn extract_all_with_limits<P: ResPathSource, O: ResPathSource>(
42 path: P,
43 output_dir: O,
44 limits: ZipLimits,
45) -> io::Result<()> {
46 let path = readable_disk_path(path.as_res_path_str())?;
47 let output_dir = writable_disk_path(output_dir.as_res_path_str())?;
48 perro_io::extract_zip_file_with_limits(path, output_dir, limits)
49}
50
51pub fn write_files<P: ResPathSource>(path: P, files: &[(&str, &str)]) -> io::Result<()> {
52 let path = writable_file_path(path.as_res_path_str())?;

Callers 4

listFunction · 0.85
read_entryFunction · 0.85
extract_allFunction · 0.85
write_filesFunction · 0.85

Calls 2

resolve_pathFunction · 0.50

Tested by

no test coverage detected