Browse Source
Merge pull request #1886 from wuh-fnst/listMultipartEmptyIsLast
s3: "isLast" returns true when the file does not exist
pull/1890/head
Chris Lu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
weed/s3api/filer_util.go
|
@ -31,6 +31,10 @@ func (s3a *S3ApiServer) list(parentDirectoryPath, prefix, startFrom string, incl |
|
|
return nil |
|
|
return nil |
|
|
}, startFrom, inclusive, limit) |
|
|
}, startFrom, inclusive, limit) |
|
|
|
|
|
|
|
|
|
|
|
if len(entries) == 0 { |
|
|
|
|
|
isLast = true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return |
|
|
return |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|