i want to copy folder1 to the folder2.now folder1 consists of many folders and files also开发者_运维知识库 and so on..How can i program that all the files and folders will copy to the Folder2.I know the logic to copy a single file to a folder..
Similar problems in other platforms often use recursion.
Save some time and use the Jakarta FileUtils.copyDirectory()
精彩评论