Forum: Ruby paths and drive letters???

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chuck B. (Guest)
on 2006-06-08 21:36
Hi,

I'm trying to make a ruby program which will search for and then
manipulate list of files and the files themselves.  I'm confused about
the Dir class and/or Find module. How do I specify a windows drive
letter to limit/refine my search to a specific disk drive?
Chris (Guest)
on 2006-06-08 22:33
Hey

Dir.chdir('c:') works on my Win2k box

And Find('c:') seems to be OK too

Cheers
Chuck (Guest)
on 2006-06-09 00:00
(Received via mailing list)
Chris,

Doh!   Thanks, that seems to do it. :) Maybe it had something to do
with using freeride.  I've been playing with it for hours and just
couldn't seem to get it right :(

so I'm a little slow on the uptake...,
Chuck
This topic is locked and can not be replied to.