cls._rename_conflicted_file(path, replacement_path)
else:
try:
+ print "-------- here's the conflict replace_file: path %s, replacement_path %s, backup_path %s" % (path, replacement_path, backup_path)
fileutil.replace_file(path, replacement_path, backup_path)
+
except fileutil.ConflictError:
is_conflict = True
cls._rename_conflicted_file(path, replacement_path)
os.rename(replaced_path, backup_path)
rename_no_overwrite(replacement_path, replaced_path)
except EnvironmentError:
+ print "@@@@@@@@@@@@@@@@@@@@@@@@@@@env err"
reraise(ConflictError)