From: ara.t.howard@... Date: 2007-02-14T16:24:09+09:00 Subject: Re: Problem with File.mv On Wed, 14 Feb 2007, Rebhan, Gilbert wrote: > -----Original Message----- > From: ara.t.howard@noaa.gov [mailto:ara.t.howard@noaa.gov] > Sent: Tuesday, February 13, 2007 4:57 PM > To: ruby-talk ML > Subject: Re: Problem with File.mv > > */ > # untested - should work though... > > > require "fileutils" > > src = "T:/rubytest/deploy/E023889/INCLIB" > dst = "T:/Foobar/INCLIB" > > fu = FileUtils > f = File > d = Dir > > fu.mkdir_p dst > > d.glob(f.join(src,'*'){|e| fu.mv e, dst} > */ > > after changing the line d.glob ... into > > d.glob(f.join(src,'*')){|e| fu.mv e, dst} > > it run's with Exit Code 0 put only the fu.mkdir does his work, > means dst is created but nothing more, no files under T:/Foobar/INCLIB make sure it's finding them: d.glob(f.join(src,'*')){|e| p e => dst; fu.mv e, dst} is it? -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama