From: ChrisH Date: 2007-02-13T23:30:07+09:00 Subject: Re: Problem with File.mv On Feb 13, 6:16 am, "Rebhan, Gilbert" wrote: ... > Dir.foreach({CANDIDATE) { |x| > FileUtils.mv x, 'Y:/bla/'< > but that gave me an error = > > c:/ruby/lib/ruby/1.8/fileutils.rb:495:in `mv': File exists - Y:/bla/. > (Errno::EEXIST) ... > What's wrong ?! > > Regards, Gilbert Looks like you need to ensure you are not trying to move the '.' (and also '..') dirs. cheers