|
@@ -207,13 +207,14 @@ public class DownloadServiceImpl implements IDownloadService {
|
|
|
|
|
|
private void zipOssFiles(String num, String resolution, int imagesVersion, Set<String> cacheKeys, String version) throws Exception{
|
|
|
|
|
|
-// fYunFileService.downloadFileByCommand(String.format(sourceLocal, num, this.wwwroot), String.format(UploadFilePath.VIEW_PATH, num));
|
|
|
- List<String> strings = fYunFileService.listRemoteFiles(String.format(UploadFilePath.VIEW_PATH, num));
|
|
|
- strings.stream().forEach(str->{
|
|
|
- if(!str.contains("/tiles/4k/") && !str.contains("/tiles/2k/")){
|
|
|
- fYunFileService.downloadFile(str, String.format(sourceLocal, num, this.wwwroot).concat(str));
|
|
|
- }
|
|
|
- });
|
|
|
+ fYunFileService.downloadFileByCommand(String.format(sourceLocal, num, this.wwwroot), String.format(UploadFilePath.VIEW_PATH, num));
|
|
|
+ FileUtil.del(String.format(sourceLocal, num, this.wwwroot).concat(String.format(UploadFilePath.IMG_VIEW_PATH, num)).concat("tiles"));
|
|
|
+// List<String> strings = fYunFileService.listRemoteFiles(String.format(UploadFilePath.VIEW_PATH, num));
|
|
|
+// strings.stream().forEach(str->{
|
|
|
+// if(!str.contains("/tiles/4k/") && !str.contains("/tiles/2k/")){
|
|
|
+// fYunFileService.downloadFile(str, String.format(sourceLocal, num, this.wwwroot).concat(str));
|
|
|
+// }
|
|
|
+// });
|
|
|
// fYunFileService.downloadFile(String.format(UploadFilePath.VIEW_PATH, num), String.format(sourceLocal, num, this.wwwroot));
|
|
|
|
|
|
//特殊文件处理
|