File: C:/Ruby27-x64/share/ri/2.7.0/system/FileUtils/cp_r-i.ri
U:RDoc::AnyMethod[iI" cp_r:ETI"FileUtils#cp_r;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"ICopies +src+ to +dest+. If +src+ is a directory, this method copies ;TI"Dall its contents recursively. If +dest+ is a directory, copies ;TI"+src+ to +dest/src+.;To:RDoc::Markup::BlankLine o;
; [I""+src+ can be a list of files.;T@o;
; [I"FIf +dereference_root+ is true, this method dereference tree root.;T@o;
; [I"\If +remove_destination+ is true, this method removes each destination file before copy.;T@o:RDoc::Markup::Verbatim; [I";# Installing Ruby library "mylib" under the site_ruby
;TI"6FileUtils.rm_r site_ruby + '/mylib', force: true
;TI"1FileUtils.cp_r 'lib/', site_ruby + '/mylib'
;TI"
;TI"># Examples of copying several files to target directory.
;TI"FFileUtils.cp_r %w(mail.rb field.rb debug/), site_ruby + '/tmail'
;TI"VFileUtils.cp_r Dir.glob('*.rb'), '/home/foo/lib/ruby', noop: true, verbose: true
;TI"
;TI"F# If you want to copy all contents of a directory instead of the
;TI"@# directory itself, c.f. src/x -> dest/x, src/y -> dest/y,
;TI"# use following code.
;TI"NFileUtils.cp_r 'src/.', 'dest' # cp_r('src', 'dest') makes dest/src,
;TI"; # but this doesn't.;T:@format0:
@fileI"lib/fileutils.rb;T:0@omit_headings_from_table_of_contents_below000[ I"i(src, dest, preserve: nil, noop: nil, verbose: nil, dereference_root: true, remove_destination: nil);T@)FI"FileUtils;TcRDoc::NormalModule00