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

Function isRooted

github-actions/saucelabs/set-saucelabs-env.js:19875–19884  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

19873 });
19874 }
19875 function isRooted(p) {
19876 p = normalizeSeparators(p);
19877 if (!p) {
19878 throw new Error('isRooted() parameter "p" cannot be empty');
19879 }
19880 if (IS_WINDOWS) {
19881 return p.startsWith("\\") || /^[A-Z]:/i.test(p);
19882 }
19883 return p.startsWith("/");
19884 }
19885 function tryGetExecutablePath(filePath, extensions) {
19886 return __awaiter2(this, void 0, void 0, function* () {
19887 let stats = void 0;

Callers 2

findInPathFunction · 0.70
execMethod · 0.70

Calls 1

normalizeSeparatorsFunction · 0.70

Tested by

no test coverage detected