|
@@ -103,7 +103,7 @@ public class S3FileService extends AbstractFYunFileService {
|
|
public void downloadFileByCommand(String bucket, String filePath, String remoteFilePath) {
|
|
public void downloadFileByCommand(String bucket, String filePath, String remoteFilePath) {
|
|
try {
|
|
try {
|
|
String optType = new File(filePath).isDirectory() ? "folder" : "file";
|
|
String optType = new File(filePath).isDirectory() ? "folder" : "file";
|
|
- String command = String.format(FYunConstants.DOWNLOAD_SH, bucket, filePath, remoteFilePath, FYunTypeEnum.LOCAL.code(), optType);
|
|
|
|
|
|
+ String command = String.format(FYunConstants.DOWNLOAD_SH, bucket, filePath, remoteFilePath, FYunTypeEnum.AWS.code(), optType);
|
|
log.info("开始上传文件, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
|
|
log.info("开始上传文件, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
|
|
callshell(command);
|
|
callshell(command);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|