I need to check whether two relative file paths are equal or not.
String path1 = "a/b/c/file.txt";
String path2 = "/A/B/../B/C/file.txt";
Actually those two paths point to the same file. But how can I check this?
PS: Doing this for absolute paths works fine, with the approach described here.