If a file is in the exact same place and is the exact same name as a file in the target location, this script will happily overwrite the existing file with the one from the staging area. This shouldn't be allowed.
The output to the user should contain a message about file name collisions and a path to each affected file, and then allow the user to stop execution of the script.
If a file is in the exact same place and is the exact same name as a file in the target location, this script will happily overwrite the existing file with the one from the staging area. This shouldn't be allowed.
The output to the user should contain a message about file name collisions and a path to each affected file, and then allow the user to stop execution of the script.