Glen H. wrote:
On Jan 14, 2008 5:45 PM, Martin M. [email protected] wrote:
Thanks in advance
Posted via http://www.ruby-forum.com/.
You need to change the permissions, either via the operating system
(independently from your script) or do it in your script before you
I thought about this solution, but in fact I don’t want to change the
state of the other files that are in the destination location.
If I want to do that I need to do something like:
def cp_rf(src, dest)
src_files = Dir[File.join(src, ‘**/.’)]
src_files.each do |src_file|
dest_file = dest + rel_path_src
dest_dirname = File.dirname(dest_file)
mkdir(dest_dirname) unless File.exist?(dest_dirname)
if ( File.exist?(dest_file.to_s) &&
I there a more easier way to do that. Because It is much more easier to
system(“xcopy c:\temp c:\temp2 /e /r /Y”)
I feel that the FileUtils module is not complete.