From 39e97de37f61884ab7d8ba63b41164bbbe9f91c4 Mon Sep 17 00:00:00 2001 From: Feng Date: Tue, 26 Jan 2021 09:47:07 +0800 Subject: [PATCH] =?UTF-8?q?DEC-17006=20fix:=20=E3=80=90S3=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E3=80=91=E9=85=8D=E7=BD=AE=E8=BE=93=E5=85=A5=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84=E8=B7=AF=E5=BE=84=E4=B9=9F=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E8=BF=9E=E6=8E=A5=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fanruan/fs/s3/repository/core/S3ResourceRepository.java | 3 ++- 1 file changed, 2 insertions(+), 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 4ea1913..621bcaa 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 @@ -210,7 +210,8 @@ public class S3ResourceRepository extends BaseResourceRepository { @Override public boolean isDirectory(String path) { - if (path.endsWith(DELIMITER)) { + + if (path.endsWith(DELIMITER) && exist(path)) { return true; } ObjectListing listing = s3.listObjects(bucket, path);