From 101929732344e023cebbe3e6edf3d08276bdac5b Mon Sep 17 00:00:00 2001 From: nahi Date: Mon, 24 Dec 2007 14:09:57 +0000 Subject: Mon Dec 24 23:04:57 2007 NAKAMURA, Hiroshi * lib/ftools.rb: removed obsoleted lib. use fileutils instead (by eban). * lib/rdoc/rdoc.rb, lib/rdoc/generators/*, lib/rake.rb: let it use fileutils instead of ftools. * lib/shell/command-processor.rb: removed unused references to ftools. * lib/parsedate.rb: removed. see [ruby-core:12535], [ruby-dev:31969]. * lib/README: updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/generators/html_generator.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/rdoc/generators/html_generator.rb') diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb index 1f9b808e8d..4348703c30 100644 --- a/lib/rdoc/generators/html_generator.rb +++ b/lib/rdoc/generators/html_generator.rb @@ -34,7 +34,7 @@ # HTML is generated using the Template class. # -require 'ftools' +require 'fileutils' require 'rdoc/options' require 'rdoc/template' @@ -1025,7 +1025,7 @@ module Generators def create_source_code_file(code_body) meth_path = @html_class.path.sub(/\.html$/, '.src') - File.makedirs(meth_path) + FileUtils.mkdir_p(meth_path) file_path = File.join(meth_path, @seq) + ".html" template = TemplatePage.new(RDoc::Page::SRC_PAGE) @@ -1235,7 +1235,8 @@ module Generators # directory structure def gen_sub_directories - File.makedirs(FILE_DIR, CLASS_DIR) + FileUtils.mkdir_p(FILE_DIR) + FileUtils.mkdir_p(CLASS_DIR) rescue $stderr.puts $!.message exit 1 @@ -1289,7 +1290,7 @@ module Generators list.each do |item| if item.document_self op_file = item.path - File.makedirs(File.dirname(op_file)) + FileUtils.mkdir_p(File.dirname(op_file)) File.open(op_file, "w") { |file| item.write_on(file) } end end -- cgit v1.2.3