fix(接口测试): 修复生成多层文件夹问题

This commit is contained in:
fit2-zhao 2022-05-27 14:49:36 +08:00 committed by f2c-ci-robot[bot]
parent d49e11b55f
commit ec540937c1
1 changed files with 4 additions and 2 deletions

View File

@ -209,8 +209,10 @@ public class FileUtils {
public static void copyBdyFile(String originId, String toId) {
try {
if (StringUtils.isNotEmpty(originId) && StringUtils.isNotEmpty(toId) && !StringUtils.equals(originId, toId)) {
FileUtil.copyDir(new File(FileUtils.BODY_FILE_DIR + "/" + originId),
new File(FileUtils.BODY_FILE_DIR + "/" + toId));
}
} catch (Exception e) {
LogUtil.error(e.getMessage(), e);
}