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.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs