From: Arup Rakshit Date: 2013-01-10T19:05:33+09:00 Subject: Re: How to delete the folder contents using Ruby? Robert Klemme wrote in post #1091710: > On Thu, Jan 10, 2013 at 10:01 AM, Arup Rakshit > wrote: > numbers.each do |num| > dir = base + "Document#{num}" > > next unless dir.directory? > > newest = dir.mtime > > dir.find do |file| > newest = [newest, file.mtime].max > end > > FileUtils.rm_rf dir if newest < limit > end > Cheers > robert Thanks Robert for your help! Now what such "#" operator is doing? Could you just guide me? Any other package which can do the same instead of "stdlib", would you refer? I would like to read file system module of Ruby. -- Posted via http://www.ruby-forum.com/.