(fromDirectory, to, getCanonicalFileNameOrIgnoreCase)
| 8172 | } |
| 8173 | ts.getPathComponentsRelativeTo = getPathComponentsRelativeTo; |
| 8174 | function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { |
| 8175 | ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either both be absolute or both be relative"); |
| 8176 | var getCanonicalFileName = typeof getCanonicalFileNameOrIgnoreCase === "function" ? getCanonicalFileNameOrIgnoreCase : ts.identity; |
| 8177 | var ignoreCase = typeof getCanonicalFileNameOrIgnoreCase === "boolean" ? getCanonicalFileNameOrIgnoreCase : false; |
| 8178 | var pathComponents = getPathComponentsRelativeTo(fromDirectory, to, ignoreCase ? ts.equateStringsCaseInsensitive : ts.equateStringsCaseSensitive, getCanonicalFileName); |
| 8179 | return getPathFromPathComponents(pathComponents); |
| 8180 | } |
| 8181 | ts.getRelativePathFromDirectory = getRelativePathFromDirectory; |
| 8182 | function convertToRelativePath(absoluteOrRelativePath, basePath, getCanonicalFileName) { |
| 8183 | return !isRootedDiskPath(absoluteOrRelativePath) |
no test coverage detected
searching dependent graphs…