MCPcopy
hub / github.com/garrytan/gstack / getDataDirForPlatform

Function getDataDirForPlatform

browse/src/cookie-import-browser.ts:335–339  ·  view source on GitHub ↗
(browser: BrowserInfo, platform: BrowserPlatform)

Source from the content-addressed store, hash-verified

333}
334
335function getDataDirForPlatform(browser: BrowserInfo, platform: BrowserPlatform): string | null {
336 if (platform === 'darwin') return browser.dataDir;
337 if (platform === 'linux') return browser.linuxDataDir || null;
338 return browser.windowsDataDir || null;
339}
340
341function getBaseDir(platform: BrowserPlatform): string {
342 if (platform === 'darwin') return path.join(os.homedir(), 'Library', 'Application Support');

Callers 7

findInstalledBrowsersFunction · 0.85
listProfilesFunction · 0.85
findBrowserMatchFunction · 0.85
getBrowserMatchFunction · 0.85
getWindowsAesKeyFunction · 0.85
importCookiesViaCdpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected