how about we don't accidentally delete Rails.root, mmmkay?

This commit is contained in:
Sarah Mei 2011-01-04 22:54:19 -08:00
parent 7f86a9e1ba
commit bed82d68ab

View file

@ -22,9 +22,10 @@ module DataConversion
end
def clear_dir
`rm -rf #{full_path}`
`mkdir -p #{full_path}/json`
`mkdir -p #{full_path}/csv`
["#{full_path}/json", "#{full_path}/csv"].each do |path|
FileUtils.rm_rf(path)
FileUtils.mkdir_p(path)
end
end
def db_name