fix(接口测试): 修复生成多层文件夹问题
This commit is contained in:
parent
d49e11b55f
commit
ec540937c1
|
@ -209,8 +209,10 @@ public class FileUtils {
|
||||||
|
|
||||||
public static void copyBdyFile(String originId, String toId) {
|
public static void copyBdyFile(String originId, String toId) {
|
||||||
try {
|
try {
|
||||||
|
if (StringUtils.isNotEmpty(originId) && StringUtils.isNotEmpty(toId) && !StringUtils.equals(originId, toId)) {
|
||||||
FileUtil.copyDir(new File(FileUtils.BODY_FILE_DIR + "/" + originId),
|
FileUtil.copyDir(new File(FileUtils.BODY_FILE_DIR + "/" + originId),
|
||||||
new File(FileUtils.BODY_FILE_DIR + "/" + toId));
|
new File(FileUtils.BODY_FILE_DIR + "/" + toId));
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LogUtil.error(e.getMessage(), e);
|
LogUtil.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue