MCPcopy Create free account
hub / github.com/backnotprop/plannotator / getDraftDir

Function getDraftDir

packages/shared/draft.ts:19–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 * Get the drafts directory, creating it if needed.
18 */
19export function getDraftDir(): string {
20 const dir = join(getPlannotatorDataDir(), "drafts");
21 mkdirSync(dir, { recursive: true });
22 return dir;
23}
24
25/**
26 * Generate a stable key from content using truncated SHA-256.

Callers 2

draftPathFunction · 0.85
tombstonePathFunction · 0.85

Calls 1

getPlannotatorDataDirFunction · 0.90

Tested by

no test coverage detected