class RDoc::RDoc
def setup_output_dir(dir, force)
def setup_output_dir(dir, force) flag_file = output_flag_file dir last = {} if File.exist? dir then error "#{dir} exists and is not a directory" unless File.directory? dir begin open flag_file do |io| unless force then Time.parse io.gets io.each do |line| file, time = line.split "\t", 2 time = Time.parse(time) rescue next last[file] = time end end end rescue SystemCallError, TypeError error <<-ERROR rectory #{dir} already exists, but it looks like it isn't an RDoc directory. cause RDoc doesn't want to risk destroying any of your existing files, u'll need to specify a different output directory name (using the --op <dir> tion) ERROR end else FileUtils.mkdir_p dir end last end