MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / join_normalized_path

Function join_normalized_path

src/storage.rs:388–394  ·  view source on GitHub ↗
(root: &Path, normalized: &str)

Source from the content-addressed store, hash-verified

386
387#[cfg(not(target_arch = "wasm32"))]
388fn join_normalized_path(root: &Path, normalized: &str) -> PathBuf {
389 let mut path = root.to_path_buf();
390 for part in normalized.split('/') {
391 path.push(part);
392 }
393 path
394}
395
396fn normalize_relative_path(path: &str, what: &str) -> Result<String, String> {
397 let trimmed = path.trim();

Callers 2

newMethod · 0.85
resolve_pathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected