Ruby Dir.glob works on laptop not on desktop?
- by Nick Faraday
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