From: Amit Tomar Date: 2010-10-05T18:11:45+09:00 Subject: Re: how do i delete files in particular directoryin ruby ??? Robert Klemme wrote: > On Mon, Oct 4, 2010 at 2:27 PM, Stefano Crocco > wrote: >> >> FileUtils.rm Dir.glob('/path/to/dir/*') >> ?FileUtils.rm f unless File.directory? f >> >> I hope this helps > > And then there is also FileUtils.rm_r and FileUtils.rm_rf. :-) > > Cheers > > Thanks Robert but what is FileUtils.rm_r and FileUtils.rm_rf for?? -- Posted via http://www.ruby-forum.com/.