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

Function isMissingFileError

apps/desktop/src/main/vault.ts:466–468  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

464}
465
466function isMissingFileError(err: unknown): boolean {
467 return !!err && typeof err === 'object' && (err as { code?: string }).code === 'ENOENT'
468}
469
470async function readConfigFile(target: string): Promise<PersistedConfig | null> {
471 try {

Callers 2

readConfigFileFunction · 0.70
saveConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected