|
@@ -2,6 +2,7 @@ package com.fdkankan.fusion.common.util;
|
|
|
|
|
|
import cn.hutool.core.io.file.FileReader;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.fdkankan.fusion.config.CacheUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
import java.io.*;
|
|
@@ -178,18 +179,18 @@ public class ShellUtil {
|
|
|
*/
|
|
|
public static void yunUpload(String srcPath,String destPath){
|
|
|
String opType = srcPath.contains(".")? "file":"folder" ;
|
|
|
- String cmd = String.format(ShellCmd.FYUN_UPLOAD, "4dkankan",srcPath,destPath,"local",opType);
|
|
|
+ String cmd = String.format(ShellCmd.FYUN_UPLOAD, "4dkankan",srcPath,destPath, CacheUtil.uploadType,opType);
|
|
|
execCmd(cmd);
|
|
|
}
|
|
|
public static void yunDownload(String srcPath,String destPath){
|
|
|
String opType = srcPath.contains(".")? "file":"folder" ;
|
|
|
- String cmd = String.format(ShellCmd.FYUN_DOWN,"4dkankan",srcPath,destPath,"local",opType);
|
|
|
+ String cmd = String.format(ShellCmd.FYUN_DOWN,"4dkankan",srcPath,destPath, CacheUtil.uploadType,opType);
|
|
|
execCmd(cmd);
|
|
|
}
|
|
|
|
|
|
public static void yunDownloadSs(String srcPath,String destPath){
|
|
|
String opType = srcPath.contains(".")? "file":"folder" ;
|
|
|
- String cmd = String.format(ShellCmd.FYUN_DOWN,"laser-data",srcPath,destPath,"minio",opType);
|
|
|
+ String cmd = String.format(ShellCmd.FYUN_DOWN,"laser-data",srcPath,destPath, CacheUtil.uploadType,opType);
|
|
|
execCmd(cmd);
|
|
|
}
|
|
|
}
|