MCPcopy Create free account
hub / github.com/ding113/claude-code-hub / getPath

Function getPath

scripts/sync-settings-keys.js:92–99  ·  view source on GitHub ↗
(obj, segments)

Source from the content-addressed store, hash-verified

90}
91
92function getPath(obj, segments) {
93 let cur = obj;
94 for (const s of segments) {
95 if (!isObject(cur) || !Object.hasOwn(cur, s)) return undefined;
96 cur = cur[s];
97 }
98 return cur;
99}
100
101function loadSplitSettings(locale, messagesDir) {
102 const settingsDir = path.join(getMessagesDir(messagesDir), locale, "settings");

Callers 1

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected