[CopyFiles] fix immediate delete folders.