Joel VanderWerf | 1 Aug 2005 03:13
Picon

[rake] excluding dirs with FileList


How can I construct a FileList that excludes dirs? Not a particular
directory, but _any_ directory?

I had hoped that #exclude could be passed an object whose #=== method
returned true for a dir (using File#directory?). But #exclude tries to
turn its argument into a string and build up a regex.

--

-- 
      vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407


Gmane