There was already a question about comparison of file paths in C#. But the solution provided implies that I have absolute paths. Can anyone suggest a good solution for relative paths or point to something I have to be aware of when comparing paths (on windows).
For example:
share/logsshare\logsshare/logs\
Those strings mean the same path
The answer you linked in your post should actually work for you.
GetFullPathdoesn’t just resolve full paths to an absolute path, but also resolves relative path to absolute paths.Just don’t forget to use the code to provided in the linked answer to resolve trailing slashes and add code to replace
/with\(as mentioned by Henk)