Message409265
| 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 |
|