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 serhiy.storchaka
Recipients af, andrei.avk, lars.gustaebel, moloney, puppet, r.david.murray, serhiy.storchaka, vstinner, zigg
Date 2021-12-28.18:51:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640717461.17.0.0717238669842.issue21987@roundup.psfhosted.org>
In-reply-to
Content
Well, the tar command strips trailing slashes (even from file paths), so it is reasonable to do this in getmember().

$ mkdir dir
$ touch dir/file
$ tar cf archive.tar dir
$ tar tf archive.tar dir
dir/
dir/file
$ tar tf archive.tar dir/
dir/
dir/file
$ tar tf archive.tar dir/file
dir/file
$ tar tf archive.tar dir/file/
dir/file
$ tar tf archive.tar dir/file////
dir/file
History
Date User Action Args
2021-12-28 18:51:01serhiy.storchakasetrecipients: + serhiy.storchaka, lars.gustaebel, vstinner, r.david.murray, puppet, moloney, zigg, af, andrei.avk
2021-12-28 18:51:01serhiy.storchakasetmessageid: <1640717461.17.0.0717238669842.issue21987@roundup.psfhosted.org>
2021-12-28 18:51:01serhiy.storchakalinkissue21987 messages
2021-12-28 18:51:01serhiy.storchakacreate