> -----Original Message-----
> From: Roger Pack [mailto:rogerpack2005 / gmail.com] 
> Sent: Thursday, December 18, 2008 11:18 AM
> To: ruby-core / ruby-lang.org
> Subject: [ruby-core:20660] question about 
> Dir.glob("directory\\subdir\\*")
> 
> Out of curiosity:
> 
> Should this work in windows?
> 
> Dir.glob("c:\\*")
> => []
> 
> Dir.glob("directory_name\\*")
> 
> It surprised me since typically forward and backslash are 
> interchangeable.

It was changed in 1.8.6. Backslashes are now considered "special"
characters, so you'll need to convert them manually, or use
File.expand_path, or something.

http://groups.google.com/group/ruby-talk-google/browse_frm/thread/d15333
6ca4fabc7b/0752cf1c7dbc4b28?hl=en&lnk=gst&q=dir.glob+backslash#0752cf1c7
dbc4b28

Regards,

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication n error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.