(folderPath?: string | null)
| 27 | : RENDERER_DIST |
| 28 | |
| 29 | function canUsePath(folderPath?: string | null) { |
| 30 | if (!folderPath) { |
| 31 | return false |
| 32 | } |
| 33 | |
| 34 | try { |
| 35 | fs.accessSync(folderPath, fs.constants.R_OK) |
| 36 | return true |
| 37 | } catch { |
| 38 | return false |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | function tryGetElectronPath(name: Parameters<typeof app.getPath>[0]) { |
| 43 | try { |
no outgoing calls
no test coverage detected