From: Levent Atasoy Date: 2010-07-20T07:54:10+09:00 Subject: [ruby-core:31361] [Bug #3588] Fileutils.cp_r issues error if destination folder name contains input folder name Issue #3588 has been updated by Levent Atasoy. The following change seems to fix the case I need, and still preventing recursive copying: if !File.exist?(dest) and /^#{Regexp.quote(path)}\// =~ File.dirname(dest)+'/' ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3588 ---------------------------------------- http://redmine.ruby-lang.org