|
@@ -68,7 +68,7 @@ public class LocalFileService extends AbstractFYunFileService {
|
|
|
public void downloadFileByCommand(String bucket, String filePath, String remoteFilePath) {
|
|
|
try {
|
|
|
String optType = remoteFilePath.contains(".") ? "file" : "folder";
|
|
|
- String command = String.format(fYunConstants.DOWNLOAD_SH, bucket, filePath, remoteFilePath, FYunTypeEnum.LOCAL.code(), optType);
|
|
|
+ String command = String.format(fYunConstants.DOWNLOAD_SH, bucket, remoteFilePath, filePath, FYunTypeEnum.LOCAL.code(), optType);
|
|
|
log.info("开始下载文件, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
|
|
|
callshell(command);
|
|
|
} catch (Exception e) {
|