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

Method _getSpawnFileName

github-actions/saucelabs/set-saucelabs-env.js:20138–20145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20136 const upperName = path.basename(filePath).toUpperCase();
20137 for (const actualName of yield readdir(directory)) {
20138 if (upperName === actualName.toUpperCase()) {
20139 filePath = path.join(directory, actualName);
20140 break;
20141 }
20142 }
20143 } catch (err) {
20144 console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
20145 }
20146 return filePath;
20147 } else {
20148 if (isUnixExecutable(stats)) {

Callers 2

_getCommandStringMethod · 0.45
execMethod · 0.45

Calls 1

_isCmdFileMethod · 0.45

Tested by

no test coverage detected