Return the members of the archive as a list of TarInfo objects. The list has the same order as the members in the archive.
(self)
| 2124 | return tarinfo |
| 2125 | |
| 2126 | def getmembers(self): |
| 2127 | """Return the members of the archive as a list of TarInfo objects. The |
| 2128 | list has the same order as the members in the archive. |
| 2129 | """ |
| 2130 | self._check() |
| 2131 | if not self._loaded: # if we want to obtain a list of |
| 2132 | self._load() # all members, we first have to |
| 2133 | # scan the whole archive. |
| 2134 | return self.members |
| 2135 | |
| 2136 | def getnames(self): |
| 2137 | """Return the members of the archive as a list of their names. It has |