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

Function normCasePath

src/platform/common/platform/fileUtils.ts:7–9  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

5import * as path from '../../../platform/vscode-path/path';
6
7export function normCasePath(filePath: string): string {
8 return getOSType() === OSType.Windows ? path.normalize(filePath).toUpperCase() : path.normalize(filePath);
9}
10
11function arePathsSameImpl(path1: string, path2: string): boolean {
12 return normCasePath(path1) === normCasePath(path2);

Callers 4

getPipfileIfGlobalFunction · 0.90
arePathsSameImplFunction · 0.85
isParentPathFunction · 0.85

Calls 2

getOSTypeFunction · 0.90
normalizeMethod · 0.80

Tested by

no test coverage detected