From: "Michael C. Libby" Date: 2004-04-18T05:28:36+09:00 Subject: Re: Delete a directory with all sub-directories an files On Sat, 2004-04-17 at 14:44, Dirk Einecke wrote: > > require 'fileutils' > > FileUtils.rm_rf("somerandomdir") > > Sorry - I have not this library (and it is not possible to install this > library). But I've ftools. Can me help this library? You could update to Ruby 1.8+ where fileutils.rb is a standard module. If that doesn't work you can simply put a copy of fileutils.rb from a recent distribution into your working script directory and include it from there. No need to "install" it. And if for some reason that isn't possible, then you can always just copy the code straight from the module into your script. In this case it looks like you'd need to copy in less than 25 lines of code for the rm_rf command and the rm_r command. The only time I wouldn't do this is if there were license concerns. In any case, the fileutils.rb module has a great example of how to do this. :) -michael