rename/move (urgent)
i've got a problem renaming folders.
we have several different software releases. each comes as a base 'Core' release, and then monthly update releases.
example situation:
1) core_A_may2007 is installed, and puts some files in folder_A.
2) update_A_jun2007 (for core_A) is installed and renames folder_A to folder_B.
3) core_B_may2007 is installed (to the same dir), and puts some files in folder_A.
4) update_B_jun2007 (for core_B) is installed, it tries to rename folder_A to folder_B but can't...
when the second update is installed, it needs to
1) move files to folder_B, despite whether or not the folder exists (perhaps copyfiles and rmdir would work better for this)
2) only overwrite files when newer (setoverwrite ifnewer kind of thing)
how do i do this? please help.
the only way to get around it is to include all file in the renamed dir's in the update releases and delete the dir's under the old names, but thats a lot of files and will severely increase the filesize's (talking like an additional 70MB!)...