Normall a path ignores all the "."(this directory) it contains. So "c:\personal\.\photos\readme.txt" and "c:\personal\photos\readme.txt" should give identical results for different operations, but in the following code normalize path gives different result than other, can anyone explain the reason for this?
The documentation doesn't mention the behavior when the Path is not normalized. My guess is Path methods like relativize and resolve don't properly handle paths which are not normalized. For example check the following code and it's output: