Project

General

Profile

Bug #6411 ยป doc_fileutils_cp_r_correction.patch

zzak (Zachary Scott), 05/08/2012 08:44 PM

View differences:

lib/fileutils.rb
495 495
  #   # If you want to copy all contents of a directory instead of the
496 496
  #   # directory itself, c.f. src/x -> dest/x, src/y -> dest/y,
497 497
  #   # use following code.
498
  #   FileUtils.cp_r 'src/.', 'dest'     # cp_r('src', 'dest') makes src/dest,
498
  #   FileUtils.cp_r 'src/.', 'dest'     # cp_r('src', 'dest') makes dest/src,
499 499
  #                                      # but this doesn't.
500 500
  #
501 501
  def cp_r(src, dest, options = {})
502
-