1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ec2] treat directory as attribute of files collections

This commit is contained in:
geemus 2010-04-26 17:04:47 -07:00
parent 8e7deaa49d
commit d43ccd2515

View file

@ -8,6 +8,7 @@ module Fog
class Files < Fog::Collection class Files < Fog::Collection
attribute :delimiter, 'Delimiter' attribute :delimiter, 'Delimiter'
attribute :directory
attribute :is_truncated, 'IsTruncated' attribute :is_truncated, 'IsTruncated'
attribute :marker, 'Marker' attribute :marker, 'Marker'
attribute :max_keys, ['MaxKeys', 'max-keys'] attribute :max_keys, ['MaxKeys', 'max-keys']
@ -35,10 +36,6 @@ module Fog
end end
end end
def directory
@directory
end
def get(key, options = {}, &block) def get(key, options = {}, &block)
data = connection.get_object(directory.name, key, options, &block) data = connection.get_object(directory.name, key, options, &block)
file_data = { file_data = {