D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
FileUtils
/
Filename :
copy_file-i.ri
back
Copy
U:RDoc::AnyMethod[iI"copy_file:ETI"FileUtils#copy_file;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GCopies file from +src+ to +dest+, which should not be directories.;To:RDoc::Markup::BlankLine o; ; [I" Arguments +src+ and +dest+ ;TI"Kshould be {interpretable as paths}[rdoc-ref:FileUtils@Path+Arguments].;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"!FileUtils.touch('src0.txt') ;TI"2FileUtils.copy_file('src0.txt', 'dest0.txt') ;TI"'File.file?('dest0.txt') # => true ;T:@format0o; ; [I"Keyword arguments:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"@<tt>dereference: false</tt> - if +src+ is a symbolic link, ;TI"does not follow the link.;To;;0; [o; ; [I"4<tt>preserve: true</tt> - preserves file times.;To;;0; [o; ; [I"M<tt>remove_destination: true</tt> - removes +dest+ before copying files.;T@o; ; [I"@Related: {methods for copying}[rdoc-ref:FileUtils@Copying].;T: @fileI"lib/fileutils.rb;T:0@omit_headings_from_table_of_contents_below000[ I"6(src, dest, preserve = false, dereference = true);T@3FI"FileUtils;TcRDoc::NormalModule00