|
@@ -1370,7 +1370,9 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
|
|
|
// 拷贝本地资源
|
|
|
String oldPath = String.format("/mnt/4Dkankan/scene/%s/caches/images/", num);
|
|
|
String newPath = String.format("/mnt/4Dkankan/scene/%s/caches/images/", newNum);
|
|
|
- FileUtils.copyDirectiory(oldPath, newPath);
|
|
|
+ if(new File(oldPath).exists()){
|
|
|
+ FileUtils.copyDirectiory(oldPath, newPath);
|
|
|
+ }
|
|
|
|
|
|
String scenePath = ConstantFilePath.SCENE_V4_PATH + num;
|
|
|
File file = new File(scenePath);
|