MCPcopy Create free account
hub / github.com/Noumena-Network/code / getSettingsFilePathForSource

Function getSettingsFilePathForSource

src/utils/settings/settings.ts:378–386  ·  view source on GitHub ↗
(source: SettingSource)

Source from the content-addressed store, hash-verified

376}
377
378export function getSettingsFilePathForSource(source: SettingSource): string | undefined {
379 const candidates = getSettingsReadCandidatePathsForSource(source)
380 for (const candidate of candidates) {
381 if (getFsImplementation().existsSync(candidate)) {
382 return candidate
383 }
384 }
385 return getSettingsWriteFilePathForSource(source)
386}
387
388export function getRelativeSettingsFilePathForSource(
389 source: 'projectSettings' | 'localSettings',

Tested by

no test coverage detected