MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / forgetLocalVault

Function forgetLocalVault

apps/desktop/src/main/vault.ts:454–460  ·  view source on GitHub ↗
(
  entries: PersistedLocalVault[],
  root: string
)

Source from the content-addressed store, hash-verified

452}
453
454export function forgetLocalVault(
455 entries: PersistedLocalVault[],
456 root: string
457): PersistedLocalVault[] {
458 const target = path.resolve(root)
459 return entries.filter((entry) => path.resolve(entry.root) !== target)
460}
461
462function configBackupPath(): string {
463 return `${configPath()}.bak`

Callers 2

vault.test.tsFile · 0.90
closeLocalVaultForWindowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected