This has nothing to do with whether the path is absolute or not. I propose to rename the function to `cleanPath`.