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

Method GetSubList

Lib/idlelib/tree.py:431–441  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

429 return os.path.isdir(self.path)
430
431 def GetSubList(self):
432 try:
433 names = os.listdir(self.path)
434 except OSError:
435 return []
436 names.sort(key = os.path.normcase)
437 sublist = []
438 for name in names:
439 item = FileTreeItem(os.path.join(self.path, name))
440 sublist.append(item)
441 return sublist
442
443
444# A canvas widget with scroll bars and some useful bindings

Callers

nothing calls this directly

Calls 5

FileTreeItemClass · 0.85
listdirMethod · 0.80
sortMethod · 0.45
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected