Tim McIntyre wrote:
> files = Dir.glob("img/**/*.jpg")

Why doesn't that seem to work for me on Windows?  Is there something 
different about it on Windows than on Linux?

ruby -e 'puts Dir.glob("*.txt")'      # Works for all .txt files in cur 
dir
ruby -e 'puts Dir.glob("/**/*.txt")'  # Prints nothing
ruby -e 'puts Dir.glob("**/*.txt")'   # Works if done from subdir, not 
from C:\

Is there something different about being at the top-level directory on 
Windows?  It's unexpected behavior for me.  Why does it operate like 
that?
-- 
Posted via http://www.ruby-forum.com/.