MCPcopy Index your code
hub / github.com/nodejs/node / isRootedDiskPath

Function isRootedDiskPath

test/fixtures/snapshot/typescript.js:7566–7568  ·  view source on GitHub ↗

* Determines whether a path is an absolute disk path (e.g. starts with `/`, or a dos path * like `c:`, `c:\` or `c:/`).

(path)

Source from the content-addressed store, hash-verified

7564 * like `c:`, `c:\` or `c:/`).
7565 */
7566 function isRootedDiskPath(path) {
7567 return getEncodedRootLength(path) > 0;
7568 }
7569 ts.isRootedDiskPath = isRootedDiskPath;
7570 /**
7571 * Determines whether a path consists only of a path root.

Callers 3

toPathFunction · 0.85
convertToRelativePathFunction · 0.85

Calls 1

getEncodedRootLengthFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…