From: koulikoff Date: 2011-04-08T03:15:29+09:00 Subject: Re: Windows directories not recognized by ruby? On Apr 7, 6:03 pm, "Kalman H." wrote: > What's wrong with this code? > > C:\>mkdir test_ruby > > C:\>irb > irb(main):001:0> File.directory? "c:" > => true > irb(main):002:0> File.directory? "c:\test_ruby" > => false > irb(main):003:0> > > Thanks for any ideas in advance, > > -Kalman > > -- > Posted viahttp://www.ruby-forum.com/. You should use File.directory? File.join(%w[c: test_ruby])