|
@@ -1373,8 +1373,11 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
|
|
|
FileUtils.copyDirectiory(oldPath, newPath);
|
|
|
|
|
|
String scenePath = ConstantFilePath.SCENE_V4_PATH + num;
|
|
|
- String newScenePath = ConstantFilePath.SCENE_V4_PATH + newNum;
|
|
|
- FileUtils.copyDirectiory(scenePath, newScenePath);
|
|
|
+ File file = new File(scenePath);
|
|
|
+ if(file.exists()){
|
|
|
+ String newScenePath = ConstantFilePath.SCENE_V4_PATH + newNum;
|
|
|
+ FileUtils.copyDirectiory(scenePath, newScenePath);
|
|
|
+ }
|
|
|
|
|
|
// 拷贝数据
|
|
|
Long proId = scenePro.getId();
|