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)
| 2132 | self.fileobj.close() |
| 2133 | |
| 2134 | def getmember(self, name): |
| 2135 | """Return a TarInfo object for member 'name'. If 'name' can not be |
| 2136 | found in the archive, KeyError is raised. If a member occurs more |
| 2137 | than once in the archive, its last occurrence is assumed to be the |
| 2138 | most up-to-date version. |
| 2139 | """ |
| 2140 | tarinfo = self._getmember(name.rstrip('/')) |
| 2141 | if tarinfo is None: |
| 2142 | raise KeyError("filename %r not found" % name) |
| 2143 | return tarinfo |
| 2144 | |
| 2145 | def getmembers(self): |
| 2146 | """Return the members of the archive as a list of TarInfo objects. The |