From ddbfc05cf0b29bab5eda555ed37c45563a91af14 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Tue, 9 Feb 1999 06:08:24 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'v1_3_1_990209'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_3_1_990209@395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/ftools.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/ftools.rb') diff --git a/lib/ftools.rb b/lib/ftools.rb index 7ccc7a4468..103e27adbd 100644 --- a/lib/ftools.rb +++ b/lib/ftools.rb @@ -137,7 +137,9 @@ class << File parent = dirname(dir) makedirs parent unless FileTest.directory? parent $stderr.print "mkdir ", dir, "\n" if verbose - Dir.mkdir dir, mode + if basename(dir) != "" + Dir.mkdir dir, mode + end end end -- cgit v1.2.3