(path: &str)
| 60 | Ok(ZipEntry::new(source, *name)) |
| 61 | }) |
| 62 | .collect::<io::Result<Vec<_>>>()?; |
| 63 | perro_io::write_zip_file(path, &entries) |
| 64 | } |
| 65 | |
| 66 | fn readable_disk_path(path: &str) -> io::Result<PathBuf> { |
| 67 | validate_virtual_asset_path(path)?; |
| 68 | match perro_io::resolve_path(path) { |
| 69 | perro_io::ResolvedPath::Disk(path) => Ok(path), |
| 70 | _ => Err(io::Error::new( |
| 71 | io::ErrorKind::Unsupported, |
| 72 | "path does not resolve to disk", |
| 73 | )), |
| 74 | } |
| 75 | } |
| 76 |
no test coverage detected