fix(文件复制): 文件复制或移动后目录去重
This commit is contained in:
parent
1d05e0acb7
commit
4edfc310fd
@ -276,6 +276,7 @@ public class FileController {
|
||||
}
|
||||
|
||||
userFileService.userFileCopy(oldfilePath, newfilePath, fileName, extendName, sessionUserBean.getUserId());
|
||||
fileDealComp.deleteRepeatSubDirFile(newfilePath, sessionUserBean.getUserId());
|
||||
return RestResult.success();
|
||||
|
||||
}
|
||||
@ -300,6 +301,8 @@ public class FileController {
|
||||
}
|
||||
|
||||
userFileService.updateFilepathByFilepath(oldfilePath, newfilePath, fileName, extendName, sessionUserBean.getUserId());
|
||||
|
||||
fileDealComp.deleteRepeatSubDirFile(newfilePath, sessionUserBean.getUserId());
|
||||
return RestResult.success();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user