MCPcopy Index your code
hub / github.com/VSpaceCode/VSpaceCode / isUNC

Function isUNC

src/pathCommands.ts:103–114  ·  view source on GitHub ↗
(fsPath: string)

Source from the content-addressed store, hash-verified

101}
102
103function isUNC(fsPath: string) {
104 if (fsPath.length >= 3) {
105 // Checks \\localhost\shares\ddd
106 // ^^^
107 return (
108 isPathSeparator(fsPath.charCodeAt(0)) &&
109 isPathSeparator(fsPath.charCodeAt(1)) &&
110 !isPathSeparator(fsPath.charCodeAt(2))
111 );
112 }
113 return false;
114}
115
116/**
117 * Compute the closest relative path of the input uri to the workspace folder(s).

Callers 1

getPlatformPathFunction · 0.85

Calls 1

isPathSeparatorFunction · 0.85

Tested by

no test coverage detected