(path: P, files: &[(&str, &str)])
| 23 | perro_io::read_zip_file_entry(path, name) |
| 24 | } |
| 25 | |
| 26 | pub 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 | |
| 35 | pub 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 | |
| 41 | pub fn extract_all_with_limits<P: ResPathSource, O: ResPathSource>( |
nothing calls this directly
no test coverage detected