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

[aws|storage] raise error for delimiter in mocks

This commit is contained in:
geemus 2010-10-20 10:43:50 -07:00
parent ac346e9341
commit 398d9bc400

View file

@ -59,6 +59,9 @@ module Fog
unless bucket_name
raise ArgumentError.new('bucket_name is required')
end
if options['delimiter']
Fog::Mock.not_implemented
end
response = Excon::Response.new
if bucket = @data[:buckets][bucket_name]
contents = bucket[:objects].values.sort {|x,y| x['Key'] <=> y['Key']}.reject do |object|