MCPcopy Create free account
hub / github.com/angular/dev-infra / _getSpawnOptions

Method _getSpawnOptions

github-actions/browserstack/set-browserstack-env.js:20265–20275  ·  view source on GitHub ↗
(options, toolPath)

Source from the content-addressed store, hash-verified

20263 });
20264 };
20265 var { chmod, copyFile, lstat, mkdir, open, readdir, rename, rm, rmdir, stat, symlink, unlink } = fs2.promises;
20266 var IS_WINDOWS = process.platform === "win32";
20267 var READONLY = fs2.constants.O_RDONLY;
20268 function exists(fsPath) {
20269 return __awaiter2(this, void 0, void 0, function* () {
20270 try {
20271 yield stat(fsPath);
20272 } catch (err) {
20273 if (err.code === "ENOENT") {
20274 return false;
20275 }
20276 throw err;
20277 }
20278 return true;

Callers 1

execMethod · 0.45

Calls 1

_isCmdFileMethod · 0.45

Tested by

no test coverage detected