修复PathUtil.moveContent当target不存在时会报错问题

This commit is contained in:
Looly 2023-08-02 17:43:38 +08:00
parent 03fde0c1d3
commit 0e0b0f7513

View File

@ -162,6 +162,9 @@ public class PathMover {
final CopyOption[] options = this.options;
// 自动创建目标的父目录
PathUtil.mkParentDirs(target);
// 移动失败可能是跨分区移动导致的采用递归移动方式
walkMove(src, target, options);
return target;