From: daz Date: 2003-10-06T15:00:15+09:00 Subject: Re: daz (or others) permissioning problem going on?... "Kurt Euler" 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