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

Function getRelativePathFromFile

test/fixtures/snapshot/typescript.js:8188–8190  ·  view source on GitHub ↗
(from, to, getCanonicalFileName)

Source from the content-addressed store, hash-verified

8186 }
8187 ts.convertToRelativePath = convertToRelativePath;
8188 function getRelativePathFromFile(from, to, getCanonicalFileName) {
8189 return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanonicalFileName));
8190 }
8191 ts.getRelativePathFromFile = getRelativePathFromFile;
8192 function getRelativePathToDirectoryOrUrl(directoryPathOrUrl, relativeOrAbsolutePath, currentDirectory, getCanonicalFileName, isAbsolutePathAnUrl) {
8193 var pathComponents = getPathComponentsRelativeTo(resolvePath(currentDirectory, directoryPathOrUrl), resolvePath(currentDirectory, relativeOrAbsolutePath), ts.equateStringsCaseSensitive, getCanonicalFileName);

Callers

nothing calls this directly

Calls 3

getDirectoryPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…