MCPcopy Index your code
hub / github.com/darkreader/darkreader / winProgramFiles

Function winProgramFiles

tests/browser/paths.js:12–18  ·  view source on GitHub ↗

* @param {string} relPath * @returns {string}

(relPath)

Source from the content-addressed store, hash-verified

10 * @returns {string}
11 */
12function winProgramFiles(relPath) {
13 const x64Path = path.join(process.env.PROGRAMFILES, relPath);
14 if (fs.existsSync(x64Path)) {
15 return x64Path;
16 }
17 return path.join(process.env['ProgramFiles(x86)'], relPath);
18}
19
20/**
21 * @param {string} app

Callers 3

getChromePathFunction · 0.85
getEdgePathFunction · 0.85
getFirefoxPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…