(p: string)
| 31 | |
| 32 | /** Existence of the link/file itself (does not follow symlinks). */ |
| 33 | const linkExists = async (p: string): Promise<boolean> => { |
| 34 | try { |
| 35 | await lstat(p) |
| 36 | return true |
| 37 | } catch { |
| 38 | return false |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | const wrapperLoc = (): { wrapperPath: string; cliJsPath: string } => ({ |
| 43 | wrapperPath: path.join(userDataDir, 'zen'), |