From ed9509c06832609bf695e86f7be07e0768113128 Mon Sep 17 00:00:00 2001 From: Feng Date: Wed, 16 Dec 2020 09:25:21 +0800 Subject: [PATCH] =?UTF-8?q?DEC-16406=20S3=E6=8F=92=E4=BB=B6=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E8=AE=BE=E8=AE=A1=E4=BF=AE=E6=94=B9=E5=92=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=A8=A1=E6=9D=BF=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fanruan/fs/s3/repository/core/S3ResourceRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 78368e9..5ab689b 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 @@ -180,7 +180,7 @@ public class S3ResourceRepository extends BaseResourceRepository { @Override public boolean exist(String path) { try { - return !s3.listObjects(bucket, path).getObjectSummaries().isEmpty(); + return s3.doesObjectExist(bucket, path); } catch (Exception e) { return false; }