|
@@ -4567,8 +4567,10 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
String meshPath = String.format(ConstantFilePath.DATABUFFER_FORMAT, sceneNum) + "mesh";
|
|
String meshPath = String.format(ConstantFilePath.DATABUFFER_FORMAT, sceneNum) + "mesh";
|
|
FileUtils.deleteDirectory(meshPath);
|
|
FileUtils.deleteDirectory(meshPath);
|
|
CreateObjUtil.ossUtilCp(dataViewPath + "mesh", meshPath);
|
|
CreateObjUtil.ossUtilCp(dataViewPath + "mesh", meshPath);
|
|
- log.info("meshPath="+meshPath);
|
|
|
|
log.info("meshPath="+meshPath.concat("/mesh"));
|
|
log.info("meshPath="+meshPath.concat("/mesh"));
|
|
|
|
+ if(!new File(meshPath.concat("/mesh")).exists()){
|
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_7006);
|
|
|
|
+ }
|
|
log.info(new File(meshPath.concat("/mesh")).listFiles().toString());
|
|
log.info(new File(meshPath.concat("/mesh")).listFiles().toString());
|
|
if(new File(meshPath.concat("/mesh")).listFiles().length > 0){
|
|
if(new File(meshPath.concat("/mesh")).listFiles().length > 0){
|
|
for(File file : new File(meshPath.concat("/mesh")).listFiles()){
|
|
for(File file : new File(meshPath.concat("/mesh")).listFiles()){
|