| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/FileUtils/ |
Upload File : |
U:RDoc::AnyMethod[iI" cp_r:EFI"FileUtils::cp_r;TT:publico: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:RDoc::Markup::Verbatim; [I";# Installing Ruby library "mylib" under the site_ruby
;TI"1FileUtils.rm_r site_ruby + '/mylib', :force
;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"\FileUtils.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;FcRDoc::NormalModule00