[erlang-questions] Tar Without Paths?

Anthony Molinaro anthonym@REDACTED
Mon Nov 20 18:47:36 CET 2017


Hi,

I haven’t tested it but erl_tar:add/3,4 have a way to specify the NameInTar when adding a file.

 http://erlang.org/doc/man/erl_tar.html#add-3

HTH,

-Anthony

> On Nov 20, 2017, at 9:03 AM, code wiget <codewiget95@REDACTED> wrote:
> 
> Hello,
> 
> Is it possible to use erl_tar open or create without including the full path to the files? Right now, every add or create adds files with their full path, so when they are extracted, they come in the form of “/home/wiget/server/files_to_tar/file1.txt instead of files_to_tar/file.txt. The only options in the man pages are irrelevant to my issue, so I assume there is some way around this. If anyone has found a way, I would greatly appreciate your insight!
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171120/414b8251/attachment.htm>


More information about the erlang-questions mailing list