зеркало из https://github.com/github/ruby.git
* lib/ftools.rb (File::makedirs): do not handle "//" as a directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0eb5a42b91
Коммит
06f82d3883
|
@ -1,3 +1,7 @@
|
|||
Thu Jul 17 13:42:53 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* lib/ftools.rb (File::makedirs): do not handle "//" as a directory.
|
||||
|
||||
Wed Jul 16 16:23:58 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_proc_new): call svalue_to_avalue for yield argument.
|
||||
|
|
|
@ -131,8 +131,8 @@ class << File
|
|||
# mode = if dirs[-1].is_a? Fixnum then dirs.pop else 0755 end
|
||||
mode = 0755
|
||||
for dir in dirs
|
||||
next if FileTest.directory? dir
|
||||
parent = dirname(dir)
|
||||
next if parent == dir or FileTest.directory? dir
|
||||
makedirs parent unless FileTest.directory? parent
|
||||
$deferr.print "mkdir ", dir, "\n" if verbose
|
||||
if basename(dir) != ""
|
||||
|
|
Загрузка…
Ссылка в новой задаче