summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/ftools.rb6
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 38c1d8d4d2..ab8eb5f209 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* lib/fileutils.rb (mkdir_p): catch all SystemCallErrors.
diff --git a/lib/ftools.rb b/lib/ftools.rb
index c605bc085e..0c6182b58b 100644
--- a/lib/ftools.rb
+++ b/lib/ftools.rb
@@ -136,7 +136,11 @@ class << File
makedirs parent unless FileTest.directory? parent
$deferr.print "mkdir ", dir, "\n" if verbose
if basename(dir) != ""
- Dir.mkdir dir, mode
+ begin
+ Dir.mkdir dir, mode
+ rescue SystemCallError
+ raise unless File.directory? dir
+ end
end
end
end