aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2021-03-11 01:20:33 -0800
committerGitHub <noreply@github.com>2021-03-11 01:20:33 -0800
commit2e197604422214abd1034ee93ab38ab588e110e5 (patch)
tree7f361a3de76fe3bf0ff49d86f5369887403aaa3b
parent130ccdeb2ef97a30a520feefdbf5df0746ae1d33 (diff)
parent828fbf3fb796f19095599d5788e2b517bafabba9 (diff)
downloadseaweedfs-2e197604422214abd1034ee93ab38ab588e110e5.tar.xz
seaweedfs-2e197604422214abd1034ee93ab38ab588e110e5.zip
Merge pull request #1886 from wuh-fnst/listMultipartEmptyIsLast
s3: "isLast" returns true when the file does not exist
-rw-r--r--weed/s3api/filer_util.go4
1 files changed, 4 insertions, 0 deletions
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
}