From: "Rebhan, Gilbert" Date: 2007-02-13T20:16:27+09:00 Subject: Problem with File.mv Hi, running Ruby 1.8.4 under Windows 2000 i have a dir with subdirs = deploy_tmp/ /subdir1 /subsubdir1 /subsubdir2 /subdir2 /subsubdir1 /subsubdir2 ... i look for the eldest dir with = CANDIDATE = Dir["#{SRCDIR}/*"].collect { |f| [test(?M, f), f] }.sort.collect { |f| f[1] }[0] and then i want to move all dirs + files beyond the CANDIDATE folder which is all under subdir1 in the structure above, i tried with = Dir.foreach({CANDIDATE) { |x| FileUtils.mv x, 'Y:/bla/'< true} no error, but no move, nothing happens What's wrong ?! Regards, Gilbert