* Get the path of the global config directory * * - For Windows, get the path of APPDATA * - For Linux and MacOS, get the path of the home directory * * @return {String}
()
| 235 | * @return {String} |
| 236 | */ |
| 237 | function getGlobalDirectory() { |
| 238 | // Windows |
| 239 | if (typeof process.env.APPDATA != 'undefined') { |
| 240 | return di.path.join(process.env.APPDATA, 'terminalizer'); |
| 241 | } |
| 242 | |
| 243 | return di.path.join(process.env.HOME, '.config/terminalizer'); |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Check if the global config directory is created |
no outgoing calls
no test coverage detected