|
@@ -119,9 +119,12 @@ public class BuildV3SceneServiceImpl implements IBuildSceneService {
|
|
|
try {
|
|
|
|
|
|
//重新计算时需要删除文件夹,否知使用缓存
|
|
|
- //由于刘强说caches会影响计算结果,所以这里删除整个计算目录
|
|
|
- if(new File(message.getPath()).exists()){
|
|
|
- FileUtils.deleteDirectory(message.getPath());
|
|
|
+ if(new File(message.getPath() + File.separator + "results").exists()){
|
|
|
+ FileUtils.deleteDirectory(message.getPath() + File.separator + "results");
|
|
|
+ }
|
|
|
+ //由于刘强说caches会影响计算结果,所以这里删除caches
|
|
|
+ if(new File(message.getPath() + File.separator + "caches").exists()){
|
|
|
+ FileUtils.deleteDirectory(message.getPath() + File.separator + "caches");
|
|
|
}
|
|
|
|
|
|
//用户相机重新全量上传,需要解冻结
|