Hi,

At Mon, 21 Nov 2005 18:37:24 +0900,
Robert Klemme wrote in [ruby-talk:166758]:
> >   Dir.glob("c:/wes/photos/Bike/*.JPG") { |x| puts "Got#{x}" }
> 
> On a Windows box IMHO that should read
> 
> Dir.glob("c:\\wes\\photos\\Bike\\*.JPG") { |x| puts "Got#{x}" }

Ruby uses forward-slashes on all platforms.

> Or - a bit more portable:
> 
> Dir[File.join("c:", "wes", "photos", "Bike", "*.jpg")]

It yields "c:/wes/photos/Bike/*.JPG" even on Windows.

-- 
Nobu Nakada