mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复PathUtil.moveContent当target不存在时会报错问题
This commit is contained in:
@@ -162,6 +162,9 @@ public class PathMover {
|
|||||||
|
|
||||||
final CopyOption[] options = this.options;
|
final CopyOption[] options = this.options;
|
||||||
|
|
||||||
|
// 自动创建目标的父目录
|
||||||
|
PathUtil.mkParentDirs(target);
|
||||||
|
|
||||||
// 移动失败,可能是跨分区移动导致的,采用递归移动方式
|
// 移动失败,可能是跨分区移动导致的,采用递归移动方式
|
||||||
walkMove(src, target, options);
|
walkMove(src, target, options);
|
||||||
return target;
|
return target;
|
||||||
|
Reference in New Issue
Block a user