Are you renaming the folder in Dreamweaver or in the OS file manger?
If you use Dreamweaver, it may prompt to "Update Paths", Do not select this option, the paths should not be changed, they should be left as is.
I prefer to use the OS File Manager to rename the gallery folder before uploading,