diff --git a/lib/excoveralls/html.ex b/lib/excoveralls/html.ex index 96b0e72..29737af 100644 --- a/lib/excoveralls/html.ex +++ b/lib/excoveralls/html.ex @@ -40,7 +40,7 @@ defmodule ExCoveralls.Html do defp write_file(content, output_dir) do file_path = output_dir(output_dir) unless File.exists?(file_path) do - File.mkdir!(file_path) + File.mkdir_p!(file_path) end File.write!(Path.expand(@file_name, file_path), content) diff --git a/lib/excoveralls/json.ex b/lib/excoveralls/json.ex index 2ef480f..6b8bc54 100644 --- a/lib/excoveralls/json.ex +++ b/lib/excoveralls/json.ex @@ -36,7 +36,7 @@ defmodule ExCoveralls.Json do defp write_file(content, output_dir) do file_path = output_dir(output_dir) unless File.exists?(file_path) do - File.mkdir!(file_path) + File.mkdir_p!(file_path) end File.write!(Path.expand(@file_name, file_path), content) end