From: "Rebhan, Gilbert" Date: 2007-02-14T16:51:11+09:00 Subject: Re: Problem with File.mv Hi, -----Original Message----- From: ara.t.howard@noaa.gov [mailto:ara.t.howard@noaa.gov] Sent: Wednesday, February 14, 2007 8:24 AM To: ruby-talk ML Subject: Re: Problem with File.mv /* make sure it's finding them: d.glob(f.join(src,'*')){|e| p e => dst; fu.mv e, dst} is it? */ yup, sorry i think i had a wrong path. But what's really strange = if i use = 1. require "fileutils" src = "C:/test_deploy/E023889/INCLIB" dst = "Y:/HOST" # where Y: is a mapped LAN drive it run's with Exit Code 0 and puts all files under src/INCLIB into dst root folder but if i use = 2. require "fileutils" src = "C:/test_deploy/E023889" dst = "Y:/HOST" # where Y: is a mapped LAN drive i get the error : {"C:/test_deploy/E023889/INCLIB"=>"Y:/HOST"} c:/ruby/lib/ruby/1.8/fileutils.rb:501:in `rename': Permission denied - C:/host_deploy/E023889/INCLIB or Y:/HOST/INCLIB (Errno::EACCES) 3. src = "C:/test_deploy/E023889" dst = "C:/HOST" # where C: is a local drive i get the error : {"C:/test_deploy/E023889/INCLIB"=>"C:/HOST"} c:/ruby/lib/ruby/1.8/fileutils.rb:495:in `mv': File exists - C:/HOST (Errno::EEXIST) the dst dir is already existent in 1.,2.,3. Seems like the FileUtils on Windows are really buggy ?!? Any workaround for that ? Here is what i want to achieve = i have a deployroot, named test_deploy, there are 1 - n E...folders in it with stuff that should get checked in to cvs. so i need C:/test_deploy/E023889/*.* copied over to an existing folder C:/HOST, which is a cvs workspace, so it's copy C:/test_deploy/E023889/INCLIB/* to C:/HOST/INCLIB/* and so on Any other ways as with FileUtils ? Regards, GIlbert