plugins/object_storage/app/services/service_layer/object_storage_services/storage_object.rb
# NOTE: keep in mind there is a limit container_listing_limit
keep in mind there is a limit container_listing_limit
keep in mind there is a limit container_listing_limit
def list_objects(container_name, options={})
        if options[:prefix] == '/' && options[:delimiter] == '/'
          options[:prefix] = ''
        end
        list = elektron_object_storage.get(container_name, options).body
        result = list.map! do |o|
          object = map_attribute_names(o, OBJECTS_ATTRMAP)
          object['id'] = object['path']
          object['container_name'] = container_name
          if object.key?('last_modified_at')
            object['last_modified_at'] = DateTime.iso8601(
              object['last_modified_at']
            )
          end
          object
        end
        result
      end
def list_objects ( container_name , options = { } ) if options [ :prefix ] == '/' && options [ :delimiter ] == '/' options [ :prefix ] = '' end list = elektron_object_storage . get ( container_name , options ) . body result = list . map! do | o | object = map_attribute_names ( o , OBJECTS_ATTRMAP ) object [ 'id' ] = object [ 'path' ] object [ 'container_name' ] = container_name if object . key? ( 'last_modified_at' ) object [ 'last_modified_at' ] = DateTime . iso8601 ( object [ 'last_modified_at' ] ) end object end result end
NOTE: keep in mind there is a limit container_listing_limit
NOTE : keep in mind there is a limit container_listing_limit
# prevent prefix and delimiter with slash, if this happens # an empty list is returned # path also serves as id() for Core::ServiceLayer::Model # parse date
container_name
<not_specific>
options
<not_specific>