Browse Source

Ensure dir for plt exists when copying

pull/65/head
James Fish 10 years ago
parent
commit
fac7b627f5
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/rebar_prv_dialyzer.erl

+ 1
- 0
src/rebar_prv_dialyzer.erl View File

@ -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);

Loading…
Cancel
Save