60、Ruby中如何检查目录是否存在?
检查目录是否存在可以使用:exists 和 not exists? 使用方法。
exists
not exists?
语法:
puts Dir.exists? "dirName"\n