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


Groups > comp.lang.ruby > #2458

Windows directories not recognized by ruby?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!aioe.org!feeder.news-service.com!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail
From "Kalman H." <kalmanh@gmail.com>
Newsgroups comp.lang.ruby
Subject Windows directories not recognized by ruby?
Date Thu, 7 Apr 2011 09:03:17 -0500
Organization Service de news de lacave.net
Lines 18
Message-ID <043fe95b0b6678577d4c637390b94bc2@ruby-forum.com> (permalink)
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1302185033 49955 65.111.164.187 (7 Apr 2011 14:03:53 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Thu, 7 Apr 2011 14:03:53 +0000 (UTC)
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 381118
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <043fe95b0b6678577d4c637390b94bc2@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:2458

Show key headers only | 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