<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Hi,</div><div><br></div><div>I haven’t tested it but erl_tar:add/3,4 have a way to specify the NameInTar when adding a file.</div><div><br></div><div> <a href="http://erlang.org/doc/man/erl_tar.html#add-3">http://erlang.org/doc/man/erl_tar.html#add-3</a></div><div><br></div><div>HTH,</div><div><br></div><div>-Anthony</div><div><br>On Nov 20, 2017, at 9:03 AM, code wiget <<a href="mailto:codewiget95@gmail.com">codewiget95@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><span>Hello,</span><br><span></span><br><span>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!</span><br><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>