(rootDir: string)
| 31 | } |
| 32 | |
| 33 | async function loadManifest(rootDir: string): Promise<RestorePoint[]> { |
| 34 | const manifestPath = join(rootDir, DATA_DIR, "restore-points.json"); |
| 35 | try { |
| 36 | return JSON.parse(await readFile(manifestPath, "utf-8")); |
| 37 | } catch { |
| 38 | return []; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | async function saveManifest(rootDir: string, points: RestorePoint[]): Promise<void> { |
| 43 | const dataPath = await ensureDataDir(rootDir); |
no outgoing calls
no test coverage detected