diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-21 11:33:09 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 11:53:41 +0900 |
commit | 2dd26bed86f721ed1982d00c3a0bd5ed37568e96 (patch) | |
tree | 643dc7e2689fba87ce97536d0d0f85606c3f82ea /ext/pathname | |
parent | 181207e830cc8fb0fac78e9bcd4163c25831c600 (diff) |
[Feature #16972] Add mode: option to Pathname#mkpath
Diffstat (limited to 'ext/pathname')
-rw-r--r-- | ext/pathname/lib/pathname.rb | 4 |
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 |