MCPcopy Index your code
hub / github.com/RustPython/RustPython / list_folders

Method list_folders

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

Return a list of folder names.

(self)

Source from the content-addressed store, hash-verified

484 return
485
486 def list_folders(self):
487 """Return a list of folder names."""
488 result = []
489 for entry in os.listdir(self._path):
490 if len(entry) > 1 and entry[0] == '.' and \
491 os.path.isdir(os.path.join(self._path, entry)):
492 result.append(entry[1:])
493 return result
494
495 def get_folder(self, folder):
496 """Return a Maildir instance for the named folder."""

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
listdirMethod · 0.80
isdirMethod · 0.45
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected