Ruby program to remove a specified directory

bookmark


puts Dir.exists?("mydir"); 

Dir.rmdir("mydir"); 

puts Dir.exists?("mydir");

 


Output:

true
false