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

Function writable_file_path

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

Source from the content-addressed store, hash-verified

60 Ok(ZipEntry::new(source, *name))
61 })
62 .collect::<io::Result<Vec<_>>>()?;
63 perro_io::write_zip_file(path, &entries)
64}
65
66fn 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

Callers 1

write_filesFunction · 0.85

Calls 1

writable_disk_pathFunction · 0.85

Tested by

no test coverage detected