Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/pathname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,12 @@ def mkpath(mode: nil)

# Recursively deletes a directory, including all directories beneath it.
#
# See FileUtils.rm_r
def rmtree
# See FileUtils.rm_rf
def rmtree(noop: nil, verbose: nil, secure: nil)
# The name "rmtree" is borrowed from File::Path of Perl.
# File::Path provides "mkpath" and "rmtree".
FileUtils.rm_r(@path)
require 'fileutils'
FileUtils.rm_rf(@path, noop: noop, verbose: verbose, secure: secure)
nil
end
end
Expand Down