summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Fish <james@fishcakez.com>2014-12-17 22:50:00 +0000
committerJames Fish <james@fishcakez.com>2014-12-17 22:51:13 +0000
commitfac7b627f593ffcdce9f9346b369fcffefff6e20 (patch)
treebcdfcce21e424ed7a42ab5c5a68b9d369091ecc3 /src
parentb5500c7301eb6017d956b041daf4001d7b6cb3ff (diff)
Ensure dir for plt exists when copying
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_dialyzer.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl
index 8ef5b50..242890a 100644
--- a/src/rebar_prv_dialyzer.erl
+++ b/src/rebar_prv_dialyzer.erl
@@ -276,6 +276,7 @@ build_proj_plt(State, Plt, Files) ->
BaseFiles = get_base_plt_files(State),
{ok, State1} = update_base_plt(State, BasePlt, BaseFiles),
?INFO("Copying ~p to ~p...", [BasePlt, Plt]),
+ _ = filelib:ensure_dir(Plt),
case file:copy(BasePlt, Plt) of
{ok, _} ->
check_plt(State1, Plt, BaseFiles, Files);