MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / getTargetDirectoryPath

Function getTargetDirectoryPath

js/botasaurus-js/src/paths.ts:18–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16const isElectronAndDev: boolean = isElectron && electronConfig.isDev;
17
18export function getTargetDirectoryPath() {
19 if (isElectron) {
20 if (!isElectronAndDev) {
21 return electronConfig.userDataPath;
22 }
23 return path.join(__dirname, "../../");
24 }
25 return process.cwd();
26}

Callers 1

relativePathFunction · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected