make sure file exits before copy