MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / read_registry_file

Function read_registry_file

packages/server/src/inspector.rs:565–570  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

563}
564
565fn read_registry_file(path: &Path) -> InspectorRegistryFile {
566 let Ok(data) = fs::read_to_string(path) else {
567 return InspectorRegistryFile::default();
568 };
569 serde_json::from_str(&data).unwrap_or_default()
570}
571
572fn write_registry_file(path: &Path, registry: &InspectorRegistryFile) -> io::Result<()> {
573 if let Some(parent) = path.parent() {

Callers 3

upsertMethod · 0.85
removeMethod · 0.85
read_live_entriesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected