MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getnames

Method getnames

tools/python-3.11.9-amd64/Lib/tarfile.py:1999–2003  ·  view source on GitHub ↗

Return the members of the archive as a list of their names. It has the same order as the list returned by getmembers().

(self)

Source from the content-addressed store, hash-verified

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

Callers 2

_tarinfoMethod · 0.80
unarchiveFunction · 0.80

Calls 1

getmembersMethod · 0.95

Tested by 1

_tarinfoMethod · 0.64