Try copy and remove if rename fails.