(home: string, importId: string)
| 118 | } |
| 119 | |
| 120 | export async function deleteImported(home: string, importId: string): Promise<boolean> { |
| 121 | if (!isImportId(importId)) return false; |
| 122 | const dir = importedDirOf(home, importId); |
| 123 | if (!(await pathExists(dir))) return false; |
| 124 | await rm(dir, { recursive: true, force: true }); |
| 125 | return true; |
| 126 | } |
| 127 | |
| 128 | async function readManifest(dir: string): Promise<ImportManifest | null> { |
| 129 | try { |
no test coverage detected