[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Dir.glob doubt

Rodrigo Rosenfeld Rosas

9/3/2008 6:27:00 PM

Reading the Rails source, I found this:

(Dir.glob("#{@path}/**/*/**") | Dir.glob("#{@path}/**")).each do |file|

Why is it different from just:
(Dir.glob("#{@path}/**")).each do |file|

What am I missing?

Thanks,

Rodrigo.