deleted file before copying over it.