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
# # If you want to copy all contents of a directory instead of the
# # directory itself, c.f. src/x -> dest/x, src/y -> dest/y,
# # use following code.
# FileUtils.cp_r 'src/.', 'dest' # cp_r('src', 'dest') makes src/dest,
# FileUtils.cp_r 'src/.', 'dest' # cp_r('src', 'dest') makes dest/src,
# # but this doesn't.
#
def cp_r(src, dest, options = {})
    (1-1/1)