From fac7b627f593ffcdce9f9346b369fcffefff6e20 Mon Sep 17 00:00:00 2001 From: James Fish Date: Wed, 17 Dec 2014 22:50:00 +0000 Subject: Ensure dir for plt exists when copying --- src/rebar_prv_dialyzer.erl | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.1