Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue21987> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com