MCPcopy Create free account
hub / github.com/EvoMap/evolver / normalizeSettingsPath

Function normalizeSettingsPath

src/proxy/clientSettings.js:15–21  ·  view source on GitHub ↗
(value, home)

Source from the content-addressed store, hash-verified

13}
14
15function normalizeSettingsPath(value, home) {
16 const raw = String(value || '').trim();
17 if (!raw) return null;
18 if (home && raw === '~') return path.resolve(home);
19 if (home && raw.startsWith('~/')) return path.resolve(home, raw.slice(2));
20 return path.resolve(raw);
21}
22
23function samePath(a, b) {
24 if (!a || !b) return false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected