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

Method list_folders

Lib/mailbox.py:493–500  ·  view source on GitHub ↗

Return a list of folder names.

(self)

Source from the content-addressed store, hash-verified

491 return
492
493 def list_folders(self):
494 """Return a list of folder names."""
495 result = []
496 for entry in os.listdir(self._path):
497 if len(entry) > 1 and entry[0] == '.' and \
498 os.path.isdir(os.path.join(self._path, entry)):
499 result.append(entry[1:])
500 return result
501
502 def get_folder(self, folder):
503 """Return a Maildir instance for the named folder."""

Callers

nothing calls this directly

Calls 4

listdirMethod · 0.80
isdirMethod · 0.45
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected