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

Function rel_path

perro_editor/res/scripts/assets/editor_file_watch.rs:128–133  ·  view source on GitHub ↗
(root: &Path, path: &Path)

Source from the content-addressed store, hash-verified

126}
127
128pub fn res_paths_from_sigs(sigs: &[FileSig]) -> Vec<String> {
129 sigs.iter()
130 .filter_map(|sig| {
131 let rel = sig_path(sig)?;
132 if rel == "res" {
133 return Some("res://".to_string());
134 }
135 let path = rel.strip_prefix("res/")?;
136 let mut path = format!("res://{path}");

Callers 3

scan_innerFunction · 0.70
scan_watch_pathFunction · 0.70
normalize_relFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected