If you rename old_file_name into new_file_name, then the sync script will delete old_file_name in the remote and upload new_file_name.
This is not a big issue for small files, but it does become a problem for larger files like movies, as that mean an unnecessary upload of a file already in the remote.