chore: add a function comment

This commit is contained in:
Zaiming (Stone) Shi 2021-12-16 22:08:16 +01:00
parent b1ec8c1aba
commit f15efb4930
1 changed files with 5 additions and 0 deletions

View File

@ -194,6 +194,11 @@ delete_package(NameVsn) ->
end.
%% @doc Delete extracted dir
%% In case one lib is shared by multiple plugins.
%% it might be the case that purging one plugin's install dir
%% will cause deletion of loaded beams.
%% It should not be a problem, because shared lib should
%% reside in all the plugin install dirs.
-spec purge(name_vsn()) -> ok.
purge(NameVsn) ->
Dir = dir(NameVsn),