(versionPath: string)
| 120 | } |
| 121 | |
| 122 | async function removeOrphanedAtMarker(versionPath: string): Promise<void> { |
| 123 | const orphanedAtPath = getOrphanedAtPath(versionPath) |
| 124 | try { |
| 125 | await unlink(orphanedAtPath) |
| 126 | } catch (error) { |
| 127 | const code = getErrnoCode(error) |
| 128 | if (code === 'ENOENT') return |
| 129 | logForDebugging(`Failed to remove .orphaned_at: ${versionPath}: ${error}`) |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | function getInstalledVersionPaths(): Set<string> | null { |
| 134 | try { |
no test coverage detected