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

**URL:** <https://www.ruby-forum.com/t/ruby-trunk-feature-10381-feedback-pathname-mkdir-p-pathname-makedirs/232521>\
**Category:** Development\
**Created:** [October 14, 2014, 2:31pm UTC](https://www.ruby-forum.com/t/ruby-trunk-feature-10381-feedback-pathname-mkdir-p-pathname-makedirs/232521 "2014-10-14T14:31:17Z")\
**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-feedback-pathname-mkdir-p-pathname-makedirs/232521/1 "2014-10-14T14:31:17Z")

</div>

Issue #10381 has been updated by Akira T…

Status changed from Open to Feedback

mkdir\_p はコマンド名っぽくておすすめしたくないな、と思っています。  
makedirs については mkdir と単語の略しかたが違っていて気に入らなかったような気がします。

あと Pathname では基本的には alias でいろいろな名前をつけることはしていないという話もあります。

* * *

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-49431)**
>
> Redmine

- Author: 三村 益隆
- Status: Feedback
- Priority: Normal
- Assignee:
- 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.
   #

```
