I am unzipping some files and folders from an upload but the zip contains the files and folders one directory too deep. So currently they are located
When I need them to be located at
I have tried using the PHP rename function but get an error stating http 'wrapper does not support renaming in...'
Does anyone know the Drupal way to do this please