summaryrefslogtreecommitdiff
path: root/ext/pathname
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-21 11:33:09 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 11:53:41 +0900
commit2dd26bed86f721ed1982d00c3a0bd5ed37568e96 (patch)
tree643dc7e2689fba87ce97536d0d0f85606c3f82ea /ext/pathname
parent181207e830cc8fb0fac78e9bcd4163c25831c600 (diff)
[Feature #16972] Add mode: option to Pathname#mkpath
Diffstat (limited to 'ext/pathname')
-rw-r--r--ext/pathname/lib/pathname.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
index c3af24837f..3799d589d5 100644
--- a/ext/pathname/lib/pathname.rb
+++ b/ext/pathname/lib/pathname.rb
@@ -581,8 +581,8 @@ class Pathname # * FileUtils *
# exist.
#
# See FileUtils.mkpath and FileUtils.mkdir_p
- def mkpath
- FileUtils.mkpath(@path)
+ def mkpath(mode: nil)
+ FileUtils.mkpath(@path, mode: mode)
nil
end