Return a TarInfo object for member 'name'. If 'name' can not be found in the archive, KeyError is raised. If a member occurs more than once in the archive, its last occurrence is assumed to be the most up-to-date version.
(self, name)
| 2113 | self.fileobj.close() |
| 2114 | |
| 2115 | def getmember(self, name): |
| 2116 | """Return a TarInfo object for member 'name'. If 'name' can not be |
| 2117 | found in the archive, KeyError is raised. If a member occurs more |
| 2118 | than once in the archive, its last occurrence is assumed to be the |
| 2119 | most up-to-date version. |
| 2120 | """ |
| 2121 | tarinfo = self._getmember(name.rstrip('/')) |
| 2122 | if tarinfo is None: |
| 2123 | raise KeyError("filename %r not found" % name) |
| 2124 | return tarinfo |
| 2125 | |
| 2126 | def getmembers(self): |
| 2127 | """Return the members of the archive as a list of TarInfo objects. The |