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

Function isPathRelativeToParent

internal/modulespecifiers/util.go:236–238  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

234}
235
236func isPathRelativeToParent(path string) bool {
237 return strings.HasPrefix(path, "..")
238}
239
240func getRelativePathIfInSameVolume(path string, directoryPath string, useCaseSensitiveFileNames bool) string {
241 relativePath := tspath.GetRelativePathToDirectoryOrUrl(directoryPath, path, false, tspath.ComparePathsOptions{

Callers 2

getLocalModuleSpecifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected