From 71602c20435f717167f28e92b647529dfd21646f Mon Sep 17 00:00:00 2001 From: Chris Hicks Date: Tue, 6 Aug 2019 10:43:32 +0200 Subject: [PATCH 1/2] Create parent directories for html docs --- lib/excoveralls/html.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From df89d715c63b5eeaaf05439e3ced6603dfa78433 Mon Sep 17 00:00:00 2001 From: Chris Hicks Date: Tue, 6 Aug 2019 10:44:01 +0200 Subject: [PATCH 2/2] Create parent directories for json docs --- lib/excoveralls/json.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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