In the .NET API for Windows Store Apps the Path class does not have the GetFullPath method. I need to normalize a path though, which was easy using GetFullPath. Does anyone know another method or external code that normalizes a path? What I mean with that is for example:
- add the application’s path if the path does not start with a drive
- handle ..\ and .\ correctly
GetFullPath is pretty complex and mimicking the functionality is not easy.
I did not find any replacement for GetFullPath, but developed a method that handles parent directory tokens (..\) like GetFullPath.
Here it is: