开发者

copying Folder to another folder which copy all content recursively

开发者 https://www.devze.com 2023-03-11 04:16 出处:网络
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 t

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()

0

精彩评论

暂无评论...
验证码 换一张
取 消