MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / isAbsolute

Function isAbsolute

src/platform/vscode-path/path.ts:433–449  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

431 },
432
433 isAbsolute(path: string): boolean {
434 validateString(path, 'path');
435 const len = path.length;
436 if (len === 0) {
437 return false;
438 }
439
440 const code = path.charCodeAt(0);
441 return (
442 isPathSeparator(code) ||
443 // Possible device root
444 (len > 2 &&
445 isWindowsDeviceRoot(code) &&
446 path.charCodeAt(1) === CHAR_COLON &&
447 isPathSeparator(path.charCodeAt(2)))
448 );
449 },
450
451 join(...paths: string[]): string {
452 if (paths.length === 0) {

Callers

nothing calls this directly

Calls 3

validateStringFunction · 0.85
isWindowsDeviceRootFunction · 0.85
isPathSeparatorFunction · 0.70

Tested by

no test coverage detected