From: Nobuyoshi Nakada Date: 2007-05-18T17:23:48+09:00 Subject: Re: Bug in Dir.glob in 1.8.6 on Windows? 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. -- Nobu Nakada