Browse Source

s3: "isLast" returns true when the file does not exist

pull/1886/head
wuheng 4 years ago
parent
commit
828fbf3fb7
  1. 4
      weed/s3api/filer_util.go

4
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
} }

Loading…
Cancel
Save