Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2458

Windows directories not recognized by ruby?

From "Kalman H." <kalmanh@gmail.com>
Newsgroups comp.lang.ruby
Subject Windows directories not recognized by ruby?
Date 2011-04-07 09:03 -0500
Organization Service de news de lacave.net
Message-ID <043fe95b0b6678577d4c637390b94bc2@ruby-forum.com> (permalink)

Show all headers | View raw


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 via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Windows directories not recognized by ruby? "Kalman H." <kalmanh@gmail.com> - 2011-04-07 09:03 -0500
  Re: Windows directories not recognized by ruby? Nikolai Weibull <now@bitwi.se> - 2011-04-07 09:23 -0500
  Re: Windows directories not recognized by ruby? paul h <paul@hollyer.me.uk> - 2011-04-07 07:28 -0700
  Re: Windows directories not recognized by ruby? Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-04-07 09:28 -0500
    Re: Windows directories not recognized by ruby? Regis d'Aubarede <regis.aubarede@gmail.com> - 2011-04-07 10:47 -0500
  Re: Windows directories not recognized by ruby? koulikoff <koulikoff@gmail.com> - 2011-04-07 11:10 -0700

csiph-web