⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
FileUtils
/
Edit File: 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
Simpan