From 828fbf3fb796f19095599d5788e2b517bafabba9 Mon Sep 17 00:00:00 2001 From: wuheng Date: Thu, 11 Mar 2021 15:20:50 +0800 Subject: [PATCH] s3: "isLast" returns true when the file does not exist --- weed/s3api/filer_util.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weed/s3api/filer_util.go b/weed/s3api/filer_util.go index 3626ece98..12a74126a 100644 --- a/weed/s3api/filer_util.go +++ b/weed/s3api/filer_util.go @@ -31,6 +31,10 @@ func (s3a *S3ApiServer) list(parentDirectoryPath, prefix, startFrom string, incl return nil }, startFrom, inclusive, limit) + if len(entries) == 0 { + isLast = true + } + return }