Python 2.6.3 TarFile Module Add odd behavior
Tilson, Greg (IS)
Greg.Tilson at ngc.com
Fri Nov 13 20:23:31 CET 2009
In Windows Python 2.6.3 calling TarFile.add requires arcname= to be set
to work with WinZIP or WinRAR
TarFile.add(name, arcname=None, recursive=True, exclude=None)
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).
Changed in version 2.6: Added the exclude parameter.
If arcname= is not set during extraction all filenames are "None"
Suggest document change or filing a bug report
I am accessing comp.lang.python through email because of Northrop
Grumman News server issue
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list