N
Newb Newb
Hi..
I try to copy folders recursively..
my_dir = Dir.glob( Dir.glob("#{@source}/**/*")
my_dir.each do |f|
File.copy(f,@@dest)
end
For example @source = e:/test_dir
If that test_dir has 10 files.if some error occurs while copying a 4th
file,Again copying of the file should not continue from 1st file to 10th
file again.
If that 4 th file not copied due to any errors it should continue
copying from 5 th file and so on...
I think using arrray index might do the trick.
Any ideas
Thanks
I try to copy folders recursively..
my_dir = Dir.glob( Dir.glob("#{@source}/**/*")
my_dir.each do |f|
File.copy(f,@@dest)
end
For example @source = e:/test_dir
If that test_dir has 10 files.if some error occurs while copying a 4th
file,Again copying of the file should not continue from 1st file to 10th
file again.
If that 4 th file not copied due to any errors it should continue
copying from 5 th file and so on...
I think using arrray index might do the trick.
Any ideas
Thanks