(path: &str)
| 129 | "writes are restricted to `user://` or absolute paths", |
| 130 | )) |
| 131 | } |
| 132 | |
| 133 | fn disk_path(path: &str) -> io::Result<PathBuf> { |
| 134 | validate_virtual_asset_path(path)?; |
| 135 | match perro_io::resolve_path(path) { |
| 136 | perro_io::ResolvedPath::Disk(path) => Ok(path), |
| 137 | _ => Err(io::Error::new( |
| 138 | io::ErrorKind::Unsupported, |
| 139 | "path does not resolve to disk", |
| 140 | )), |
| 141 | } |
| 142 | } |
| 143 |
no test coverage detected