MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / normalize_graph_path

Method normalize_graph_path

graphlite/src/storage/data_adapter.rs:74–82  ·  view source on GitHub ↗

Normalize graph path to be safe for use as storage key

(graph_path: &str)

Source from the content-addressed store, hash-verified

72
73 /// Normalize graph path to be safe for use as storage key
74 fn normalize_graph_path(graph_path: &str) -> String {
75 graph_path
76 .replace("/", "_")
77 .replace("\\", "_")
78 .replace(":", "_")
79 .replace(".", "_")
80 .trim_start_matches('_')
81 .to_string()
82 }
83
84 /// Load a GraphCache for a specific graph path using provided driver connection
85 pub fn load_graph_by_path(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected