added ability to choose whether or not to overwrite files in case of conflict