On Apr 7, 6:03 ¨Βν¬ ΆΛαμναΘ®Όλαμν®®®ΐηναιμ®γονχςοτεΊ
> 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])