|
@@ -211,7 +211,7 @@ public class S3FileService extends AbstractFYunFileService {
|
|
|
try {
|
|
|
List<String> files = listRemoteFiles(sourceBucketName, sourcePath);
|
|
|
if (ObjectUtils.isEmpty(files)) {
|
|
|
- log.error("源文件夹为空:{}", sourcePath);
|
|
|
+ return;
|
|
|
}
|
|
|
files.stream().forEach(file -> {
|
|
|
CopyObjectRequest request = new CopyObjectRequest(sourceBucketName, file, targetBucketName, file.replace(sourcePath, targetPath));
|