projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67288ef
)
16535: Populate object Size field in ListBucket response.
author
Tom Clegg <tom@tomclegg.ca>
Thu, 30 Jul 2020 20:38:34 +0000
(16:38 -0400)
committer
Tom Clegg <tom@tomclegg.ca>
Thu, 30 Jul 2020 20:40:50 +0000
(16:40 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
services/keep-web/s3.go
patch
|
blob
|
history
diff --git
a/services/keep-web/s3.go
b/services/keep-web/s3.go
index 05764beee0ab5612b67a7831833384cb4b3f8f73..29de9ce2da13f12dbf2cdf40564a43ab30bc9a6c 100644
(file)
--- a/
services/keep-web/s3.go
+++ b/
services/keep-web/s3.go
@@
-306,7
+306,9
@@
func (h *handler) s3list(w http.ResponseWriter, r *http.Request, fs arvados.Cust
return errDone
}
resp.Contents = append(resp.Contents, s3.Key{
- Key: path,
+ Key: path,
+ LastModified: fi.ModTime().UTC().Format("2006-01-02T15:04:05.999") + "Z",
+ Size: fi.Size(),
})
return nil
})