[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Find
From: Bertram Scharpf <lists () bertram-scharpf ! de>
Date: 2007-10-08 11:56:57
Message-ID: 20071008115652.GA11554 () bart ! simpsons ! bs ! loc
[Download RAW message or body]
Hi,
Am Montag, 08. Okt 2007, 20:35:04 +0900 schrieb gga:
>
> > >
> > > >> the Ruby built-in Find module lacks a lot of features the
> > > >> GNU find tools has. I wrote a new one (~170 lines).
> > >
> > > >> <http://www.bertram-scharpf.de/tmp/find.rb>
> > >
> > > >> Maybe somebody likes it.
> > >
> > > > I wrote file-find not long ago:
> > >
> > > >http://raa.ruby-lang.org/project/file-find/
> > >
>
> Both seem complementary. Bertram has sorting built-in and is not
> backwards compatible.
>
> After a quick look, Bertram's code also has silly inefficient things
> like:
> dir = (Dir.open @fullpath do |d| d.entries end) - SPECIAL_DIRS
> which can just be:
> dir = Dir.entries(@fullpath) - SPECIAL_DIRS
Argh!
> and the Etc module may be checked several times depending on what you
> request.
I already corrected this yesterday and upload it now.
Bertram
--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic