MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / dir

Function dir

src/lib/yargs-transition-temp.ts:29–33  ·  view source on GitHub ↗
(category: 'cache' | 'config')

Source from the content-addressed store, hash-verified

27 (platform() === 'darwin' && join(home, 'Library', 'Caches', dirname)) || undefined
28
29 const dir = (category: 'cache' | 'config'): string => {
30 const base = process.env[`XDG_${category.toUpperCase()}_HOME`] ||
31 (onWindows && process.env.LOCALAPPDATA) || join(home, '.' + category)
32 return join(base, dirname)
33 }
34
35 return { oldConfigDir: dir('config'), oldCacheDir: macosCacheDir() || dir('cache') }
36}

Callers 1

oldDirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected