Dir.glob doubt

  • Thread starter Rodrigo Rosenfeld Rosas
  • Start date
R

Rodrigo Rosenfeld Rosas

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,655
Latest member
eizareri

Latest Threads

Top