|
@@ -76,12 +76,12 @@ public class UploadCacheImagesHandler {
|
|
|
|
|
|
String[] list = new File(path).list();
|
|
|
String ossBasePath = "scene_result_data/" + v.getNum() + "/caches/images/";
|
|
|
-// if(list != null && list.length > 0){
|
|
|
-// Arrays.stream(list).forEach(k-> fYunFileService.uploadFile(path + v, ossBasePath + v));
|
|
|
-// }
|
|
|
+ if(list != null && list.length > 0){
|
|
|
+ Arrays.stream(list).forEach(k-> fYunFileService.uploadFile(path + v, ossBasePath + v));
|
|
|
+ }
|
|
|
|
|
|
//重命名dataSource(因为不确定这个目录的文件是否还有其他用处,所以这里暂时重命名,运行一段时间后再进行删除处理)
|
|
|
-// FileUtil.move(new File(dataSource), new File(dataSource + "_bak"), true);
|
|
|
+ FileUtil.move(new File(dataSource), new File(dataSource + "_bak"), true);
|
|
|
|
|
|
}
|
|
|
});
|