fix(文件复制): 文件复制或移动后目录去重

This commit is contained in:
MAC 2022-05-07 21:51:53 +08:00
parent 1d05e0acb7
commit 4edfc310fd

View File

@ -276,6 +276,7 @@ public class FileController {
} }
userFileService.userFileCopy(oldfilePath, newfilePath, fileName, extendName, sessionUserBean.getUserId()); userFileService.userFileCopy(oldfilePath, newfilePath, fileName, extendName, sessionUserBean.getUserId());
fileDealComp.deleteRepeatSubDirFile(newfilePath, sessionUserBean.getUserId());
return RestResult.success(); return RestResult.success();
} }
@ -300,6 +301,8 @@ public class FileController {
} }
userFileService.updateFilepathByFilepath(oldfilePath, newfilePath, fileName, extendName, sessionUserBean.getUserId()); userFileService.updateFilepathByFilepath(oldfilePath, newfilePath, fileName, extendName, sessionUserBean.getUserId());
fileDealComp.deleteRepeatSubDirFile(newfilePath, sessionUserBean.getUserId());
return RestResult.success(); return RestResult.success();
} }