Monday, December 21, 2009

[Work] Ruby, check directory folder existence


if File.exists? path_out
puts path_out+" exists"
else
# puts path_out+" doesn't exist"
Dir.mkdir(path_out)
end

No comments: