D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
FileUtils
/
Filename :
rmdir-c.ri
back
Copy
U:RDoc::AnyMethod[iI" rmdir:ETI"FileUtils::rmdir;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I":Removes directories 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"PWith no keyword arguments, removes the directory at each +path+ in +list+, ;TI"+by calling: <tt>Dir.rmdir(path)</tt>; ;TI")see {Dir.rmdir}[rdoc-ref:Dir.rmdir]:;T@o:RDoc::Markup::Verbatim; [I"NFileUtils.rmdir(%w[tmp0/tmp1 tmp2/tmp3]) # => ["tmp0/tmp1", "tmp2/tmp3"] ;TI"AFileUtils.rmdir('tmp4/tmp5') # => ["tmp4/tmp5"] ;T:@format0o; ; [I"Keyword arguments:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"F<tt>parents: true</tt> - removes successive ancestor directories ;TI"if empty.;To;;0; [o; ; [I"7<tt>noop: true</tt> - does not remove directories.;To;;0; [o; ; [I";<tt>verbose: true</tt> - prints an equivalent command:;T@o;; [I"LFileUtils.rmdir(%w[tmp0/tmp1 tmp2/tmp3], parents: true, verbose: true) ;TI"@FileUtils.rmdir('tmp4/tmp5', parents: true, verbose: true) ;T; 0o; ; [I"Output:;T@o;; [I""rmdir -p tmp0/tmp1 tmp2/tmp3 ;TI"rmdir -p tmp4/tmp5 ;T; 0o; ; [I"7Raises an exception if a directory does not exist ;TI"8or if for any reason a directory cannot be removed.;T@o; ; [I"BRelated: {methods for deleting}[rdoc-ref:FileUtils@Deleting].;T: @fileI"lib/fileutils.rb;T:0@omit_headings_from_table_of_contents_below000[ I"2(list, parents: nil, noop: nil, verbose: nil);T@EFI"FileUtils;TcRDoc::NormalModule00