|
@@ -95,10 +95,10 @@ public class OssFileService extends AbstractFYunFileService {
|
|
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, remoteFilePath, filePath, FYunTypeEnum.OSS.code(), optType);
|
|
String command = String.format(fYunConstants.DOWNLOAD_SH, bucket, remoteFilePath, filePath, FYunTypeEnum.OSS.code(), optType);
|
|
- log.info("开始上传文件, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
|
|
|
|
|
|
+ log.info("开始下载文件, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
|
|
callshell(command);
|
|
callshell(command);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error("上传文件失败, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
|
|
|
|
|
|
+ log.error("下载文件失败, ossPath:{}, srcPath:{}", remoteFilePath, filePath);
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|