Normalize the path

def normpath(self, path):
        """ Normalize the path """
        path2 = posixpath.normpath(urllib.parse.unquote(path))
        if path.endswith("/"):
            path2 += "/"
        return path2