Return the members of the archive as a list of their names. It has the same order as the list returned by getmembers().
(self)
| 1997 | return self.members |
| 1998 | |
| 1999 | def getnames(self): |
| 2000 | """Return the members of the archive as a list of their names. It has |
| 2001 | the same order as the list returned by getmembers(). |
| 2002 | """ |
| 2003 | return [tarinfo.name for tarinfo in self.getmembers()] |
| 2004 | |
| 2005 | def gettarinfo(self, name=None, arcname=None, fileobj=None): |
| 2006 | """Create a TarInfo object from the result of os.stat or equivalent |