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

Method list_folders

Lib/mailbox.py:1187–1193  ·  view source on GitHub ↗

Return a list of folder names.

(self)

Source from the content-addressed store, hash-verified

1185 self.unlock()
1186
1187 def list_folders(self):
1188 """Return a list of folder names."""
1189 result = []
1190 for entry in os.listdir(self._path):
1191 if os.path.isdir(os.path.join(self._path, entry)):
1192 result.append(entry)
1193 return result
1194
1195 def get_folder(self, folder):
1196 """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