# \[ruby-trunk - Feature #10381\] Pathname#mkdir\_p, Pathname#makedirs が欲しい

**URL:** <https://www.ruby-forum.com/t/ruby-trunk-feature-10381-pathname-mkdir-p-pathname-makedirs/232523>\
**Category:** Development\
**Created:** [October 14, 2014, 2:31pm UTC](https://www.ruby-forum.com/t/ruby-trunk-feature-10381-pathname-mkdir-p-pathname-makedirs/232523 "2014-10-14T14:31:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [October 14, 2014, 2:31pm UTC](https://www.ruby-forum.com/t/ruby-trunk-feature-10381-pathname-mkdir-p-pathname-makedirs/232523/1 "2014-10-14T14:31:53Z")

</div>

Issue #10381 has been updated by Akira T…

Assignee set to Akira T.

* * *

Feature #10381: Pathname#mkdir\_p, Pathname#makedirs が欲しい

> **[Feature #10381: Pathname#mkdir\_p, Pathname#makedirs が欲しい - Ruby master - Ruby...](https://bugs.ruby-lang.org/issues/10381#change-49432)**
>
> Redmine

- Author: 三村 益隆
- Status: Feedback
- Priority: Normal
- Assignee: Akira T.
- Category:
- Target version:

* * *

Pathname#mkpath にも FileUtils#mkpath と他の同じ挙動をするメソッド名が欲しいです。

```auto
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
index 82541e9..40c3ae1 100644
--- a/ext/pathname/lib/pathname.rb
+++ b/ext/pathname/lib/pathname.rb
@@ -564,6 +564,8 @@ class Pathname # * FileUtils *
     FileUtils.mkpath(@path)
     nil
   end
+ alias :mkdir_p :mkpath
+ alias :makedirs :mkpath

   # Recursively deletes a directory, including all directories beneath 
it.
   #

```
