D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
FileUtils
/
Filename :
rm-i.ri
back
Copy
U:RDoc::AnyMethod[iI"rm:ETI"FileUtils#rm;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"6Removes entries at the paths in the given +list+ ;TI"*(a single path or an array of paths) ;TI"Breturns +list+, if it is an array, <tt>[list]</tt> otherwise.;To:RDoc::Markup::BlankLine o; ; [I"%Argument +list+ or its elements ;TI"Kshould be {interpretable as paths}[rdoc-ref:FileUtils@Path+Arguments].;T@o; ; [I"KWith no keyword arguments, removes files at the paths given in +list+:;T@o:RDoc::Markup::Verbatim; [I"/FileUtils.touch(['src0.txt', 'src0.dat']) ;TI"JFileUtils.rm(['src0.dat', 'src0.txt']) # => ["src0.dat", "src0.txt"] ;T:@format0o; ; [I"Keyword arguments:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"G<tt>force: true</tt> - ignores raised exceptions of StandardError ;TI"and its descendants.;To;;0; [o; ; [I"@<tt>noop: true</tt> - does not remove files; returns +nil+.;To;;0; [o; ; [I";<tt>verbose: true</tt> - prints an equivalent command:;T@o;; [I"GFileUtils.rm(['src0.dat', 'src0.txt'], noop: true, verbose: true) ;T; 0o; ; [I"Output:;T@o;; [I"rm src0.dat src0.txt ;T; 0o; ; [I"BRelated: {methods for deleting}[rdoc-ref:FileUtils@Deleting].;T: @fileI"lib/fileutils.rb;T:0@omit_headings_from_table_of_contents_below000[[I"remove;To;; [ ;@=;0I"0(list, force: nil, noop: nil, verbose: nil);T@=FI"FileUtils;TcRDoc::NormalModule00