This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ellioh
Recipients ellioh
Date 2009-03-17.15:35:59
SpamBayes Score 2.1394327e-07
Marked as misclassified No
Message-id <1237304162.51.0.555320282686.issue5500@psf.upfronthosting.co.za>
In-reply-to
Content
Tested on Python 2.5.4.

1. Use tarfile.open("fname", "w|gz") to create an archive.
2. Add a file using TarFile.add(name, arcname=None, recursive=True,
exclude=None) by specifying 2 params: absolute path to a source file as
'name' and something containing one or more directories, e.g.
'test/myfile.txt' as 'arcname'.
3. Close the archive.

On Linux file is added as 'test/myfile.txt'. On Windows the full path
specified as 'name' is used (e.g. 'D:\\MyDir\\myfile.txt'). When I use
'w|bz2' everything works correctly.

Probably this bug is somewhat similar to a bug #4750, though it happens
under Windows and doesn't happen under Linux.
History
Date User Action Args
2009-03-17 15:36:03elliohsetrecipients: + ellioh
2009-03-17 15:36:02elliohsetmessageid: <1237304162.51.0.555320282686.issue5500@psf.upfronthosting.co.za>
2009-03-17 15:36:00elliohlinkissue5500 messages
2009-03-17 15:35:59elliohcreate