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 bertramscharpf
Recipients
Date 2004-09-20.11:10:51
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Tarring a directory (only a directory, not its contents) 
with the tar program results in 
 
user@host:~$ mkdir tmp 
user@host:~$ tar --no-recursion -cf sample.tar tmp/ 
user@host:~$ tar tfv sample.tar  
drwxr-xr-x user/user 0 2004-09-20 12:55:27 tmp/ 
 
Using the Python `tarfile' module, the result is 
 
user@host:~$ python 
... 
>>> t = tarfile.open( 'sample.tar', 'w') 
>>> t.add( 'tmp', recursive = False) 
... 
user@host:~$ tar tfv sample.tar  
drwxr-xr-x user/user 4096 2004-09-20 12:55:27 tmp/ 
 
But there are no 4096 Bytes in the tar file. If this 
is not actually a bug, I would like to propose it to 
be one. 
 
I may provide a solution to this at 
<http://www.bertram-scharpf.de/tmp/tarfile.tar.gz> 
 
Bertram 
History
Date User Action Args
2007-08-23 14:26:22adminlinkissue1031148 messages
2007-08-23 14:26:22admincreate