MCPcopy Create free account
hub / github.com/backnotprop/plannotator / isAbsoluteNormalizedUserPath

Function isAbsoluteNormalizedUserPath

packages/shared/resolve-file.ts:113–124  ·  view source on GitHub ↗
(
	input: string,
	platform = process.platform,
)

Source from the content-addressed store, hash-verified

111}
112
113function isAbsoluteNormalizedUserPath(
114 input: string,
115 platform = process.platform,
116): boolean {
117 if (hasWindowsDriveLetter(input)) {
118 return true;
119 }
120
121 return platform === "win32"
122 ? win32.isAbsolute(input)
123 : isAbsolute(input);
124}
125
126export function isAbsoluteUserPath(
127 input: string,

Callers 4

isAbsoluteUserPathFunction · 0.85
resolveUserPathFunction · 0.85
resolveCodeFileFunction · 0.85
resolveMarkdownFileCoreFunction · 0.85

Calls 1

hasWindowsDriveLetterFunction · 0.85

Tested by

no test coverage detected