Daz (or others) permissioning problem going on?

Oh. Right. I should have figured this one out.

Thanks!

-Kurt Euler

···

-----Original Message-----
From: daz [mailto:dooby@d10.karoo.co.uk]
Sent: Sunday, October 05, 2003 11:00 PM
To: ruby-talk@ruby-lang.org
Subject: Re: daz (or others) permissioning problem going on?..

“Kurt Euler” keuler@portal.com wrote:

[…] When I run this code…

require ‘ftools’
TARGET = ‘C:/test/rbcopies’ # target directory
Dir.mkdir(TARGET) unless File.directory?(TARGET)

for f in Dir.glob(“./**/*”)
next unless File.file?(f)
#
# check for exists? / read-only etc.
#
File.syscopy(f, TARGET)
end

… I get this error:

 test44.rb:3:in `mkdir': No such file or directory - C:/test/rbcopies (Errno::ENOENT)

from test44.rb:3

The example I gave assumed that C:\TEMP exists already.
If ‘C:\test’ doesn’t exist, mkdir won’t be able to create sub-directory ‘C:\test\rbcopies’.

I’m on Win98, so I can’t help with permissions, sorry.

daz