()
| 17 | * Get the drafts directory, creating it if needed. |
| 18 | */ |
| 19 | export 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. |
no test coverage detected