first copy all the files, then remove the temporary dir