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