Method: Path#rmtree
- Defined in:
- lib/epath/fileutils.rb
#rmtree ⇒ Object Also known as: rm_r
Deletes a directory and all beneath it. See FileUtils.rm_r.
15 16 17 18 19 20 |
# File 'lib/epath/fileutils.rb', line 15 def rmtree # The name "rmtree" is borrowed from File::Path of Perl. # File::Path provides "mkpath" and "rmtree". FileUtils.rm_r(@path) self end |