<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Python 2.6.3 TarFile Module Add odd behavior</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<P><FONT FACE="Arial">In Windows Python 2.6.3 calling TarFile.add<B> requires</B><I> arcname=</I> to be set to work with WinZIP or WinRAR</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Documentation reads:</FONT>
<BR><FONT SIZE=2 FACE="Arial">TarFile.add(name, arcname=None, recursive=True, exclude=None) </FONT>
<BR><FONT SIZE=2 FACE="Arial">Add the file name to the archive. name may be any type of file (directory, fifo, symbolic link, etc.). If given, arcname specifies an alternative name for the file in the archive. Directories are added recursively by default. This can be avoided by setting recursive to False. If exclude is given it must be a function that takes one filename argument and returns a boolean value. Depending on this value the respective file is either excluded (True) or added (False).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Changed in version 2.6: Added the exclude parameter.</FONT>
</P>
<P><FONT FACE="Arial">If</FONT><I> <FONT FACE="Arial">arcname=</FONT></I> <FONT FACE="Arial">is not set during extraction all filenames are "None"</FONT>
</P>
<P><FONT FACE="Arial">Suggest document change or filing a bug report</FONT>
<BR><FONT FACE="Arial">I am accessing comp.lang.python through email because of Northrop Grumman News server issue</FONT>
</P>
</BODY>
</HTML>