New submission from Brendan Moloney:

If a directory path is under 100 char you have to omit the trailing slash from 
the name passed to 'getmember'. If it is over 100 you have to include the 
trailing slash.

As a work around I can use the private '_getmember' with 'normalize=True'.

I tested on 2.7.2 and searched the release notes looking for a related fix 
since then. I couldn't find anything there, or here in the issue tracker.

----------
components: Library (Lib)
messages: 223167
nosy: moloney
priority: normal
severity: normal
status: open
title: TarFile.getmember on directory requires trailing slash iff over 100 chars
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21987>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to