diff --git a/plugin.xml b/plugin.xml
index c9fd10e..8549f9f 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -5,12 +5,14 @@
com.fanruan.fs
yes
no
- 1.2.5
+ 1.2.7
10.0
2021-03-11
richie
+ [2021-03-30]修复copy文件耗时问题。
[2021-01-28]修复备份还原S3报警告问题。
[2021-01-24]修复定时调度结果文件预览失败。
[2021-01-20]正式作为官方插件维护。
diff --git a/src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java b/src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java
index f754762..e411788 100644
--- a/src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java
+++ b/src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java
@@ -308,6 +308,12 @@ public class S3ResourceRepository extends BaseResourceRepository {
return false;
}
+ @Override
+ public boolean copyFile(String origPath, String desPath) throws ResourceIOException {
+ s3.copyObject(bucket, origPath, bucket, desPath);
+ return exist(desPath);
+ }
+
@Override
public void shutDown() {
s3.shutdown();