[erlang-bugs] erl_tar:add cannot alter archives
Tue Mar 3 18:47:31 CET 2009
using erl_tar:add existing tar archives cannot be
altered. Existing file entries are dropped.
The manual does not tell anything about that limit.
(As it would do about e.g. module:zip)
test code as follows:
% delete file from previous tests
% open, save Bin1, close
ok=erl_tar:add(Tar1, <<"Bin1">>, "Bin1.txt",),
% now there is an archive and in there as expected file: Bin1.txt
% open, save Bin2, close
ok=erl_tar:add(Tar2, <<"Bin2">>, "Bin2.txt",),
% now there is an archive and in there as expected file: Bin2.txt
% but file Bin1.txt is lost
More information about the erlang-bugs