MCPcopy Index your code
hub / github.com/WebFreak001/code-debug / toPathKind

Method toPathKind

src/source_file_map.ts:47–58  ·  view source on GitHub ↗
(unknownPath: string)

Source from the content-addressed store, hash-verified

45 }
46
47 private toPathKind(unknownPath: string): PathKind {
48 const pathPosix: PathKind = PathPosix.getInstance();
49 const pathWin32: PathKind = PathWin32.getInstance();
50
51 if (pathPosix.isAbsolute(unknownPath) ||
52 (this.remoteCwd && pathPosix.isAbsolute(this.remoteCwd)))
53 {
54 return pathPosix;
55 } else {
56 return pathWin32;
57 }
58 }
59
60 private pathMatch(key: keyof Mapping, caseSensitive: boolean, path: string): Mapping | undefined {
61 for (const mapping of this.sortedMappings[key]) {

Callers 3

constructorMethod · 0.95
toLocalPathMethod · 0.95
toRemotePathMethod · 0.95

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected