how to move and file folders and subfolders with all the files to another folder, checking whether there are more files in subfolders, recalling that in the first folder may have folder and files together, how do I not make any mistake when the two?

thanks