From: Bil Kleb Date: 2007-10-22T21:10:04+09:00 Subject: Re: Removing a directory that isn't empty Gabriel Dragffy wrote: > What would be the best way to use Dir.rmdir to delete a directory that > isn't empty? I think it would involve performing a recursive delete, > this is trivial in bash, but what about in Ruby? I normally use FileUtils for that sort of thing, e.g., require 'fileutils' FileUtils.rm_rf 'directory' Regards, -- Bil Kleb http://nasarb.rubyforge.org