diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-05-17 07:03:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 07:03:56 -0400 |
commit | d834aa411bab618d408a47a0fdfa9999ba677750 (patch) | |
tree | 767e15fedf0ec00272b3daa447334b898353f808 /src | |
parent | 917abc61d4c4f9e1f84d15867ec2c8352b74067f (diff) | |
parent | 47db2e91fce39da12ec91742b41d80f142b30a4b (diff) |
Merge pull request #1553 from filmor/patch-1
Use rm_rf instead of ec_file:delete.
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_fetch.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_fetch.erl b/src/rebar_fetch.erl index 47bfe1d..f5e5db5 100644 --- a/src/rebar_fetch.erl +++ b/src/rebar_fetch.erl @@ -46,7 +46,7 @@ download_source_(AppDir, Source, State) -> {ok, _} -> ec_file:mkdir_p(AppDir1), code:del_path(filename:absname(filename:join(AppDir1, "ebin"))), - ec_file:remove(filename:absname(AppDir1), [recursive]), + ok = rebar_file_utils:rm_rf(filename:absname(AppDir1)), ?DEBUG("Moving checkout ~p to ~p", [TmpDir, filename:absname(AppDir1)]), ok = rebar_file_utils:mv(TmpDir, filename:absname(AppDir1)), true; |