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

Method _delete_recursively

Lib/test/test_mailbox.py:46–51  ·  view source on GitHub ↗
(self, target)

Source from the content-addressed store, hash-verified

44 self.assertEqual(part.get_payload(), payload)
45
46 def _delete_recursively(self, target):
47 # Delete a file or delete a directory recursively
48 if os.path.isdir(target):
49 os_helper.rmtree(target)
50 elif os.path.exists(target):
51 os_helper.unlink(target)
52
53
54class TestMailbox(TestBase):

Callers 8

setUpMethod · 0.80
tearDownMethod · 0.80
test_initialize_newMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80

Calls 3

isdirMethod · 0.45
existsMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected