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 Joe Tsai
Recipients Joe Tsai, lars.gustaebel, nitishch, serhiy.storchaka
Date 2017-10-03.22:07:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This bug is not platform specific.

I've attached a reproduction:
$ python
>>> import tarfile
>>>"test.tar", "r").next().isdir()

$ tar -tvf test.tar
-rw-rw-r-- 0/0               0 1969-12-31 16:00 123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/foo.txt
$ tar --version
tar (GNU tar) 1.27.1

For some background, this bug was original filed against the Go standard library (for which I am the maintainer of the Go implementation of tar). When I investigated the issue, I discovered that Go was doing the right thing, and that the discrepancy was due to the check I pointed to earlier. The GNU tool indicates that this is a regular file as well.
Date User Action Args
2017-10-03 22:07:23Joe Tsaisetrecipients: + Joe Tsai, lars.gustaebel, serhiy.storchaka, nitishch
2017-10-03 22:07:23Joe Tsaisetmessageid: <>
2017-10-03 22:07:23Joe Tsailinkissue31557 messages
2017-10-03 22:07:23Joe Tsaicreate