[ruby-dev:48628] [ruby-trunk - Feature #10381] Pathname#mkdir_p, Pathname#makedirs が欲しい

From: akr@...
Date: 2014-10-14 12:31:02 UTC
List: ruby-dev #48628
Issue #10381 has been updated by Akira Tanaka.

Assignee set to Akira Tanaka

----------------------------------------
Feature #10381: Pathname#mkdir_p, Pathname#makedirs =E3=81=8C=E6=AC=B2=E3=
=81=97=E3=81=84
https://bugs.ruby-lang.org/issues/10381#change-49432

* Author: =E4=B8=89=E6=9D=91 =E7=9B=8A=E9=9A=86
* Status: Feedback
* Priority: Normal
* Assignee: Akira Tanaka
* Category:=20
* Target version:=20
----------------------------------------
Pathname#mkpath =E3=81=AB=E3=82=82 FileUtils#mkpath =E3=81=A8=E4=BB=96=E3=
=81=AE=E5=90=8C=E3=81=98=E6=8C=99=E5=8B=95=E3=82=92=E3=81=99=E3=82=8B=E3=83=
=A1=E3=82=BD=E3=83=83=E3=83=89=E5=90=8D=E3=81=8C=E6=AC=B2=E3=81=97=E3=81=84=
=E3=81=A7=E3=81=99=E3=80=82

~~~
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
=20
   # Recursively deletes a directory, including all directories beneath it.
   #
~~~



--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next