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

Method list_folders

Lib/mailbox.py:1194–1200  ·  view source on GitHub ↗

Return a list of folder names.

(self)

Source from the content-addressed store, hash-verified

1192 self.unlock()
1193
1194 def list_folders(self):
1195 """Return a list of folder names."""
1196 result = []
1197 for entry in os.listdir(self._path):
1198 if os.path.isdir(os.path.join(self._path, entry)):
1199 result.append(entry)
1200 return result
1201
1202 def get_folder(self, folder):
1203 """Return an MH instance for the named folder."""

Callers 4

test_list_foldersMethod · 0.45
test_list_foldersMethod · 0.45

Calls 4

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

Tested by 4

test_list_foldersMethod · 0.36
test_list_foldersMethod · 0.36