lib/bauxite/loggers/html.rb in bauxite-0.6.2 vs lib/bauxite/loggers/html.rb in bauxite-0.6.3

- old
+ new

@@ -157,10 +157,13 @@ end html << " </body> </html>" file = @file - file = File.join(output, file) if output != '' + if output != '' + file = File.join(output, file) + Dir.mkdir output unless Dir.exists? output + end File.open(file, 'w') { |f| f.write html } end private def _d(depth, s) \ No newline at end of file