(path string, directoryPath string, useCaseSensitiveFileNames bool)
| 238 | } |
| 239 | |
| 240 | func getRelativePathIfInSameVolume(path string, directoryPath string, useCaseSensitiveFileNames bool) string { |
| 241 | relativePath := tspath.GetRelativePathToDirectoryOrUrl(directoryPath, path, false, tspath.ComparePathsOptions{ |
| 242 | UseCaseSensitiveFileNames: useCaseSensitiveFileNames, |
| 243 | CurrentDirectory: directoryPath, |
| 244 | }) |
| 245 | if tspath.IsRootedDiskPath(relativePath) { |
| 246 | return "" |
| 247 | } |
| 248 | return relativePath |
| 249 | } |
| 250 | |
| 251 | func packageJsonPathsAreEqual(a string, b string, options tspath.ComparePathsOptions) bool { |
| 252 | if a == b { |
no test coverage detected