moving files from legacy to new folder, deleting the old one if its empty