[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars
Brendan Moloney
report at bugs.python.org
Wed Jul 16 05:40:59 CEST 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue21987>
_______________________________________
More information about the Python-bugs-list
mailing list