Paths and drive letters?


#1

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?


#2

Hey

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

And Find(‘c:’) seems to be OK too

Cheers


#3

Chris,

Doh! Thanks, that seems to do it. :slight_smile: 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 :frowning:

so I’m a little slow on the uptake…,
Chuck