fix the deletion bug

current known bugs
1. When copying files the dates don't copy in many situations.