MCPcopy
hub / github.com/massCodeIO/massCode / getVaultPath

Function getVaultPath

src/main/storage/providers/markdown/runtime/paths.ts:23–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21import { getSpaceDirPath } from './spaces'
22
23export function getVaultPath(): string {
24 const configuredVaultPath = store.preferences.get('storage.vaultPath') as
25 | string
26 | null
27 | undefined
28
29 if (configuredVaultPath && configuredVaultPath.trim()) {
30 return configuredVaultPath
31 }
32
33 const storagePath = store.preferences.get('storage.rootPath') as string
34 return path.join(storagePath, 'markdown-vault')
35}
36
37interface LegacyStateFolderLike {
38 id: number

Callers 15

getSpaceRootFunction · 0.90
getStateIdsFunction · 0.90
scanCodeFunction · 0.90
scanNotesFunction · 0.90
scanHttpFunction · 0.90
getMathStatePathFunction · 0.90
applyVaultDoctorFunction · 0.90
startMarkdownWatcherFunction · 0.90
resolvePathsFunction · 0.90
resolvePathsFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected