From: Thomas Leitner Date: 2007-05-18T18:50:10+09:00 Subject: Re: Bug in Dir.glob in 1.8.6 on Windows? On May 18, 10:23 am, Nobuyoshi Nakada wrote: > Hi, > > At Fri, 18 May 2007 04:35:04 +0900, > Thomas Leitner wrote in [ruby-talk:251987]: > > > I got a bug report for webgen which appeared when the user change from > > ruby 1.8.5 to 1.8.6 using the One-Click-Ruby-Installer. Following is > > an extract from an IRB session under Windows with ruby 1.8.6: > > Thank you for the report, fixed now. > > > Has this behaviour already been seen/has anyone an explanation for > > this and does anyone know how to only get directories using Dir.[] in > > ruby 1.8.6 under Windows? > > Windows API FindFirstFile/FindNextFile return the file mode > together, and Dir#glob about to utilize it to tell if it is a > directory. The bug is that the info for the first entry, > i.e. ".", was always used. Thanks for the fast reply, the fix and the explanation! I assume that this fix will be in the next release of the One-Click-Installer for Windows?! Thomas