( path1, path2 )
| 609 | |
| 610 | |
| 611 | def ComparePaths( path1, path2 ): |
| 612 | # Assume that the file system is case-insensitive on Windows and macOS and |
| 613 | # case-sensitive on other platforms. While this is not necessarily true, being |
| 614 | # completely correct here is not worth the trouble as this assumption |
| 615 | # represents the overwhelming use case and detecting the case sensitivity of a |
| 616 | # file system is tricky. |
| 617 | if OnWindows() or OnMac(): |
| 618 | return path1.lower() == path2.lower() |
| 619 | return path1 == path2 |
| 620 | |
| 621 | |
| 622 | # Both |line| and |column| need to be 1-based |
no outgoing calls
no test coverage detected