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

Function getTargetDirectoryPath

js/botasaurus-server-js/src/paths.ts:41–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41export function getTargetDirectoryPath() {
42 if (isElectron) {
43 if (isElectronAndDev) {
44 if (isRunningInErbDll()) {
45 return path.join(__dirname, "../../");
46 }
47 return __dirname;
48 }
49 // In Production
50 return electronConfig.userDataPath;
51 }
52 return process.cwd();
53}
54
55function isRunningInErbDll() {
56 const currentDir = __dirname;

Callers 1

utils.tsFile · 0.90

Calls 2

isRunningInErbDllFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected