# File lib/AWS.rb, line 193
193:       def pathlist(key, arr)
194:         params = {}
195: 
196:         # ruby 1.9 will barf if we pass in a string instead of the array expected.
197:         # it will fail on each_with_index below since string is not enumerable.
198:         if arr.is_a? String
199:           new_arr = []
200:           new_arr << arr
201:           arr = new_arr
202:         end
203: 
204:         arr.each_with_index do |value, i|
205:           params["#{key}.#{i+1}"] = value
206:         end
207:         params
208:       end