Method: Fog::OpenStack::Storage::Files#all

Defined in:
lib/fog/openstack/storage/models/files.rb

#all(options = {}) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/fog/openstack/storage/models/files.rb', line 16

def all(options = {})
  requires :directory
  options = {
    'limit'  => limit,
    'marker' => marker,
    'path'   => path,
    'prefix' => prefix
  }.merge!(options)
  merge_attributes(options)
  parent = directory.collection.get(
    directory.key,
    options
  )
  if parent
    # TODO: change to load_response?
    load(parent.files.map(&:attributes))
  end
end