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

Method add_folder

Lib/mailbox.py:1207–1210  ·  view source on GitHub ↗

Create a folder and return an MH instance representing it.

(self, folder)

Source from the content-addressed store, hash-verified

1205 factory=self._factory, create=False)
1206
1207 def add_folder(self, folder):
1208 """Create a folder and return an MH instance representing it."""
1209 return MH(os.path.join(self._path, folder),
1210 factory=self._factory)
1211
1212 def remove_folder(self, folder):
1213 """Delete the named folder, which must be empty."""

Callers 8

test_list_foldersMethod · 0.45
test_get_folderMethod · 0.45
test_folderMethod · 0.45
test_list_foldersMethod · 0.45
test_get_folderMethod · 0.45

Calls 2

MHClass · 0.85
joinMethod · 0.45

Tested by 8

test_list_foldersMethod · 0.36
test_get_folderMethod · 0.36
test_folderMethod · 0.36
test_list_foldersMethod · 0.36
test_get_folderMethod · 0.36