()
| 120 | const docPath = (id: string) => path.join(rootDir, sanitizeId(id)) |
| 121 | const legacyDocPath = (id: string) => legacyNestedRootDir ? path.join(legacyNestedRootDir, sanitizeId(id)) : null |
| 122 | const ensureRoot = () => fs.mkdir(rootDir, { recursive: true }) |
| 123 | |
| 124 | async function writeMigratedDoc(id: string, data: Uint8Array): Promise<void> { |
| 125 | await ensureRoot() |
no outgoing calls
no test coverage detected