mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/ftools.rb (makedirs): sync with fileutils.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c3abcd043
commit
50e61c533b
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Dec 11 20:07:01 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/ftools.rb (makedirs): sync with fileutils.
|
||||||
|
|
||||||
Thu Dec 11 19:53:03 2003 Minero Aoki <aamine@loveruby.net>
|
Thu Dec 11 19:53:03 2003 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/fileutils.rb (mkdir_p): catch all SystemCallErrors.
|
* lib/fileutils.rb (mkdir_p): catch all SystemCallErrors.
|
||||||
|
|
|
@ -136,7 +136,11 @@ class << File
|
||||||
makedirs parent unless FileTest.directory? parent
|
makedirs parent unless FileTest.directory? parent
|
||||||
$deferr.print "mkdir ", dir, "\n" if verbose
|
$deferr.print "mkdir ", dir, "\n" if verbose
|
||||||
if basename(dir) != ""
|
if basename(dir) != ""
|
||||||
Dir.mkdir dir, mode
|
begin
|
||||||
|
Dir.mkdir dir, mode
|
||||||
|
rescue SystemCallError
|
||||||
|
raise unless File.directory? dir
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue