I have a simple but annoying problem when upgrading MODx. According to
the docs the first step (after backups) is to "simply upload the files over the existing ones." Sounds easy enough.
My usual modus operandi is to upload the Zip file to the production hosting site root, then decompress it,
overwriting the appropriate files - wait a minute, it doesn’t overwrite the appropriate files, because the Zip file is structured thus:
modx-2.0.7-pl.zip -->> modx-2.0.7-pl -->> files
So, instead of overwriting the files by unzipping, I find myself with the new files in a folder named like the Zip file. Now maybe I’m missing something obvious, but without SSH access I don’t know of a good way to move those files to the site root en masse (or even one at a time) and overwrite their counterparts. I am under the impression that FTP doesn’t even support such an action, and cPanel’s legacy file manager certainly doesn’t.
My solution is to decompress the original Zip file on my local computer, dig into it, and recompress the files, without the folder, in a brand new Zip, which can then be used as described above.
Question 1: Is there another way to do this that I’m not thinking of?
Question 2: Will the Zip file always be distributed this way, or is there a possibility of just the files, not the folder, ever being zipped by default?
Thanks!