Browse code

Emit storage class in info subcommand

Andrew Gaul authored on 2016/01/18 15:56:12
Showing 1 changed files
... ...
@@ -854,6 +854,7 @@ def cmd_info(args):
854 854
                 output(u"   File size: %s" % info['headers']['content-length'])
855 855
                 output(u"   Last mod:  %s" % info['headers']['last-modified'])
856 856
                 output(u"   MIME type: %s" % info['headers'].get('content-type', 'none'))
857
+                output(u"   Storage:   %s" % info['headers'].get('x-amz-storage-class', 'STANDARD'))
857 858
                 md5 = info['headers']['etag'].strip('"\'')
858 859
                 try:
859 860
                     md5 = info['s3cmd-attrs']['md5']