MCPcopy Create free account
hub / github.com/microsoft/typescript-go / GetNormalizedPathComponents

Function GetNormalizedPathComponents

internal/tspath/path.go:340–343  ·  view source on GitHub ↗
(path string, currentDirectory string)

Source from the content-addressed store, hash-verified

338}
339
340func GetNormalizedPathComponents(path string, currentDirectory string) []string {
341 combined := CombinePaths(currentDirectory, path)
342 return getNormalizedPathComponentsFromCombined(combined)
343}
344
345func getNormalizedPathComponentsFromCombined(path string) []string {
346 rootLength := GetRootLength(path)

Calls 2

CombinePathsFunction · 0.85

Tested by 1