Remove a link itself, never what it points at, when there is one.
(link: string)
| 145 | |
| 146 | /** Remove a link itself, never what it points at, when there is one. */ |
| 147 | function removeLink(link: string): void { |
| 148 | try { |
| 149 | if (fs.lstatSync(link).isSymbolicLink()) fs.unlinkSync(link); |
| 150 | } catch { |
| 151 | // Nothing there. |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Whether this machine can create a link of `type`. A Windows junction needs no |
no outgoing calls
no test coverage detected