MCPcopy Index your code
hub / github.com/nodejs/node / getRelativePathIfInDirectory

Function getRelativePathIfInDirectory

test/fixtures/snapshot/typescript.js:122674–122677  ·  view source on GitHub ↗
(path, directoryPath, getCanonicalFileName)

Source from the content-addressed store, hash-verified

122672 }
122673 moduleSpecifiers_1.tryGetJSExtensionForFile = tryGetJSExtensionForFile;
122674 function getRelativePathIfInDirectory(path, directoryPath, getCanonicalFileName) {
122675 var relativePath = ts.getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, getCanonicalFileName, /*isAbsolutePathAnUrl*/ false);
122676 return ts.isRootedDiskPath(relativePath) ? undefined : relativePath;
122677 }
122678 function isPathRelativeToParent(path) {
122679 return ts.startsWith(path, "..");
122680 }

Callers 2

getLocalModuleSpecifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected