lib/fukuzatsu/formatters/base.rb in fukuzatsu-2.2.3 vs lib/fukuzatsu/formatters/base.rb in fukuzatsu-2.2.4
- old
+ new
@@ -55,10 +55,11 @@
def reset_output_directory(base_output_path)
directory = new(base_output_path: base_output_path).output_directory
begin
FileUtils.remove_dir(directory)
rescue Errno::ENOENT
- FileUtils.mkpath(directory)
+ FileUtils.mkpath(directory)
+ end
end
def writes_to_file_system?
true
end