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

Function save_web_user_asset

perro_source/io_stack/perro_io/src/asset_io.rs:493–495  ·  view source on GitHub ↗
(key: &str, data: &[u8])

Source from the content-addressed store, hash-verified

491 return ResolvedPath::Disk(path_buf);
492 }
493
494 match project_root_opt.as_deref() {
495 Some(ProjectRoot::Disk { root, .. }) => {
496 if let Some(stripped) = path.strip_prefix("res://") {
497 if root_has_res_dir {
498 ResolvedPath::Disk(root.join("res").join(stripped))

Callers 1

save_assetFunction · 0.85

Calls 1

save_local_bytesFunction · 0.85

Tested by

no test coverage detected