Justin Collins wrote: > an an wrote: >>> It looks like you're trying to remove all the files in the directory at >> dir = Dir.open("c:\\myDir\\delete\\") >> FileUtils.rm(dir.entries.reject{|e| /\.{1,2}$/ =~ e}) >> >> the problem is, that the dir.entries only returns the filename of each >> entry...is there anyway to have them expanded > > > Use Dir.glob instead: > > FileUtils.rm Dir.glob("c:\\myDir\\delete\\") > > -Justin still doesn't work for some reason. in irb if I do Dir.glob("C:\") puts Dir.glob("C:\") neither of which print anything -- Posted via http://www.ruby-forum.com/.