MCPcopy Index your code
hub / github.com/python/cpython / getnames

Method getnames

Lib/tarfile.py:2155–2159  ·  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

2153 return self.members
2154
2155 def getnames(self):
2156 """Return the members of the archive as a list of their names. It has
2157 the same order as the list returned by getmembers().
2158 """
2159 return [tarinfo.name for tarinfo in self.getmembers()]
2160
2161 def gettarinfo(self, name=None, arcname=None, fileobj=None):
2162 """Create a TarInfo object from the result of os.stat or equivalent

Callers 15

_tarinfoMethod · 0.80
test_make_tarfileMethod · 0.80
test_empty_tarfileMethod · 0.80
test_ignore_zerosMethod · 0.80
test_100_char_nameMethod · 0.80
test_add_selfMethod · 0.80
test_createMethod · 0.80
test_create_existingMethod · 0.80
test_create_taropenMethod · 0.80

Calls 1

getmembersMethod · 0.95

Tested by 15

_tarinfoMethod · 0.64
test_make_tarfileMethod · 0.64
test_empty_tarfileMethod · 0.64
test_ignore_zerosMethod · 0.64
test_100_char_nameMethod · 0.64
test_add_selfMethod · 0.64
test_createMethod · 0.64
test_create_existingMethod · 0.64
test_create_taropenMethod · 0.64