Description
I need to check if the path is valid so it is not pointing to a higher directory than the uploads directory when using my PHP script for uploading files. But I need it to work with non existing paths too. I need something like os.path.normpath() from Python.