|
@@ -631,4 +631,15 @@ public class CreateObjUtil {
|
|
log.info("matterpro获取阿里云图片方法完成,时间为:" + (System.currentTimeMillis() - start));
|
|
log.info("matterpro获取阿里云图片方法完成,时间为:" + (System.currentTimeMillis() - start));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static void ossUtilCpFolder(String sourceFolder , String targetFolder){
|
|
|
|
+ File sourceFile = new File(sourceFolder);
|
|
|
|
+ if (!sourceFile.exists()) {
|
|
|
|
+ log.error("oss文件夹上传异常,文件夹不存在{}", sourceFolder);
|
|
|
|
+ }
|
|
|
|
+ String command = String.format(ConstantCmd.OSS_UTIL_CP_FOLDER,targetFolder,sourceFolder);
|
|
|
|
+ Long start = System.currentTimeMillis();
|
|
|
|
+ log.info("开始上传oss文件夹:" + command);
|
|
|
|
+ callshell(command);
|
|
|
|
+ log.info("oss文件夹上传完成,时间为:" + (System.currentTimeMillis() - start));
|
|
|
|
+ }
|
|
}
|
|
}
|