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

Function isDiskPathRoot

test/fixtures/snapshot/typescript.js:7573–7576  ·  view source on GitHub ↗

* Determines whether a path consists only of a path root.

(path)

Source from the content-addressed store, hash-verified

7571 * Determines whether a path consists only of a path root.
7572 */
7573 function isDiskPathRoot(path) {
7574 var rootLength = getEncodedRootLength(path);
7575 return rootLength > 0 && rootLength === path.length;
7576 }
7577 ts.isDiskPathRoot = isDiskPathRoot;
7578 /**
7579 * Determines whether a path starts with an absolute path component (i.e. `/`, `c:/`, `file://`, etc.).

Callers

nothing calls this directly

Calls 1

getEncodedRootLengthFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…