Remove duplicate directory separators and stand-alone dots, on a textual basis.
Does not resolve ".."s in paths, since this would be wrong when dealing with symlinks.
Given the symlink "/foo" pointing to "/what/ever", the path "/foo/../baz.exe" would 'physically' be "/what/baz.exe".
If "/foo" was no symlink, the actual path would be "/baz.exe".
If you need to resolve ".."s and symlinks, see resolved().
Remove duplicate directory separators and stand-alone dots, on a textual basis. Does not resolve ".."s in paths, since this would be wrong when dealing with symlinks. Given the symlink "/foo" pointing to "/what/ever", the path "/foo/../baz.exe" would 'physically' be "/what/baz.exe". If "/foo" was no symlink, the actual path would be "/baz.exe".
If you need to resolve ".."s and symlinks, see resolved().