(path: &str)
| 38 | perro_io::extract_zip_file(path, output_dir) |
| 39 | } |
| 40 | |
| 41 | pub 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 | |
| 51 | pub fn write_files<P: ResPathSource>(path: P, files: &[(&str, &str)]) -> io::Result<()> { |
| 52 | let path = writable_file_path(path.as_res_path_str())?; |
no test coverage detected