You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2004-09-21.19:03:42.000>created_at=<Date2004-09-20.11:10:51.000>labels= ['extension-modules']
title='tarfile: dirsize is not zero'updated_at=<Date2004-09-21.19:03:42.000>user='https://bugs.python.org/bertramscharpf'
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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: