Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Iteration through File.file? misses entries for whichFile.file?(entry) == true

Thread Tools

Iteration through File.file? misses entries for whichFile.file?(entry) == true

Marvin Gülker
Posts: n/a
Kyle Barbour wrote:
> Interesting, thanks! Is there any reason to prefer either this
> solution or the one Martin gave in the above post?

I'd prefer the Dir[] variant, since it's more compact. And if you want
to search for files via wildcards, it's the best way to go I think.

Oh, and one last note: My name is "Marvin", not "Martin". Note the v.

Posted via

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Picking X random entries from linked list of Y entries Don Bruder C Programming 3 08-03-2010 09:10 AM
[False,True] and [True,True] --> [True, True]????? bdb112 Python 45 04-29-2009 02:35 AM
Struts - Problem with nested iteration or double iteration Rudi Java 5 10-01-2008 03:30 AM
Cisco Buffer Misses on 2970s ants Cisco 4 10-26-2005 08:50 PM
Tying up Port Login table entries with Port Table Entries in CISCO SNMP John Ramsden Cisco 0 07-24-2004 04:03 PM