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:
parent
8e7deaa49d
commit
d43ccd2515
1 changed files with 1 additions and 4 deletions
|
@ -8,6 +8,7 @@ module Fog
|
|||
class Files < Fog::Collection
|
||||
|
||||
attribute :delimiter, 'Delimiter'
|
||||
attribute :directory
|
||||
attribute :is_truncated, 'IsTruncated'
|
||||
attribute :marker, 'Marker'
|
||||
attribute :max_keys, ['MaxKeys', 'max-keys']
|
||||
|
@ -35,10 +36,6 @@ module Fog
|
|||
end
|
||||
end
|
||||
|
||||
def directory
|
||||
@directory
|
||||
end
|
||||
|
||||
def get(key, options = {}, &block)
|
||||
data = connection.get_object(directory.name, key, options, &block)
|
||||
file_data = {
|
||||
|
|
Loading…
Reference in a new issue