From: Arup Rakshit Date: 2013-01-31T23:56:53+09:00 Subject: Re: How to copy the directory files only to another directory? Joel Pearson wrote in post #1094382: > There are a few ways to do this, this one seems to work: > > files.each do |fname| > File.rename File.absolute_path(fname), 'D:/document/' + > File.basename(fname) > end The above code during renaming deleting the file also from here "File.absolute_path(fname)". Anyway to retain those files there? Thanks -- Posted via http://www.ruby-forum.com/.