From: "Morris, Chris" Date: 2002-03-14T05:56:16+09:00 Subject: RE: Some potential RCRs > > - - A much better solution would be added support for file "type" > > matching. I.e. give me all the "simple" files in this directory > > or give me all the symlinks, or all the subdirs... Something > > similar to the kind of knobs that unix find gives you. > > Exactly what I was getting at. Something like ... def Dir.files(dirname) result = [] Dir.entries(dirname).each do |entry| result << entry if File.stat(dirname + entry).file? end result end As Guy posted, Dir[dirname + '*'] will do the same, except it includes the directory name in each entry. Maybe these sort of functions would be good additions to ftools.rb? Chris