jaa09,
il y a 14 ans
Voila la solution:
# encoding: utf-8
require 'csv'
current_line = 0
CSV.foreach("tradabcn.csv") do |row|
if current_line == 0
puts "Creating folders…"
@path = File.join('locales',row[0])
system "mkdir -p #{@path}"
elsif current_line > 0
# puts "** #{row[0]}"
end
current_line += 1
end