Method: Aliyun::OSS::Iterator::Objects#fetch

Defined in:
lib/aliyun/oss/iterator.rb

#fetch(more) ⇒ Object



64
65
66
67
68
69
# File 'lib/aliyun/oss/iterator.rb', line 64

def fetch(more)
  @results, cont = @protocol.list_objects(@bucket, more)
  @results = cont[:common_prefixes] + @results if cont[:common_prefixes]
  @more[:marker] = cont[:next_marker]
  @more[:truncated] = cont[:truncated] || false
end