Files.walk实现优雅拷贝多级目录

/**
* @author ycw
* @version v1.0
* @date 2022/3/17 16:15
* @description
*/
public class TestFilesWalkFileTree {

public static void main(String[] args) throws IOException {
String source = "E://opt";
String target = "E://ept";

Files.walk(Paths.get(source)).forEach(path -> {
try {
String targetName = path.toString().replace(source,target);

Files.walk实现优雅拷贝多级目录最先出现在Python成神之路

版权声明:
作者:玉兰
链接:https://www.techfm.club/p/25525.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>