lib/aws-matt/s3/object.rb in stephenh-s3fsr-1.0 vs lib/aws-matt/s3/object.rb in stephenh-s3fsr-1.1

- old
+ new

@@ -563,9 +563,16 @@ return nil unless stored? memoize(reload) do reload ? about(reload)['etag'][1...-1] : attributes['e_tag'][1...-1] end end + + def content_length(reload = false) + return nil unless stored? + memoize(reload) do + reload ? about(reload)['content_length'] : attributes['size'] + end + end # Returns the owner of the current object. def owner Owner.new(attributes['owner']) end