how about we don't accidentally delete Rails.root, mmmkay?
This commit is contained in:
parent
7f86a9e1ba
commit
bed82d68ab
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue