(filePath: string)
| 8 | * not be replaced. |
| 9 | */ |
| 10 | export function pathToPosix(filePath: string): string { |
| 11 | if (path.sep === path.posix.sep) { |
| 12 | return filePath |
| 13 | } |
| 14 | return filePath.split(path.sep).join(path.posix.sep) |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Returns the longest common path ancestor of the two paths (which may also be equal to one or both of them). |
no outgoing calls
no test coverage detected