From: nobu.nokada@... Date: 2002-03-22T00:22:34+09:00 Subject: Re: Some potential RCRs [Comments Summarized] Hi, At Thu, 21 Mar 2002 22:42:51 +0900, David Alan Black wrote: > > Why not add an optional parameter to Dir for modifying the content returned, > > rather than heaping more functions into the language? It would allow for > > DIR_CHILDREN flag (which would eliminate '.' and '..') as well as allow > > other flags like DIR_DIRECTORIES, DIR_FILES, DIR_BLOCKDEV, DIR_SYMLINKS, or > > NO_DIRECTORIES, NO_FILES, NO_BLOCKDEV, NO_SYMLINKS, etc. > > Just FYI: this is somewhat similar (though not identical) to a > rejected RCR from a couple of months ago > (http://www.rubygarden.org/article.php?sid=137). In 1.7, now Dir.glob takes second argument modifies only the name matching rule. -- Nobu Nakada