Ruby Dir.glob works on laptop not on desktop?
Posted
by Nick Faraday
on Stack Overflow
See other posts from Stack Overflow
or by Nick Faraday
Published on 2010-05-04T17:20:30Z
Indexed on
2010/05/04
17:58 UTC
Read the original article
Hit count: 186
ruby
I have a ruby shell script that works perfectly on my laptop, but Dir.glob doesn't seem to work when I try and run it on my desktop.
Here is the code:
sFileTemplate = File.join("**", sResolutions, "**", "*."+sType)
sFiles = Dir.glob(sFileTemplate)
Both machines run OSX 10.5 and are running ruby -v 1.9.1.
Am I calling glob wrong?
Thanks
© Stack Overflow or respective owner