MCPcopy
hub / github.com/faressoft/terminalizer / getGlobalDirectory

Function getGlobalDirectory

utility.js:237–244  ·  view source on GitHub ↗

* 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}

()

Source from the content-addressed store, hash-verified

235 * @return {String}
236 */
237function 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

Callers 5

getDefaultConfigFunction · 0.85
isGlobalDirectoryCreatedFunction · 0.85
generateTokenFunction · 0.85
getTokenFunction · 0.85
removeTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected