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

Method _delete_recursively

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

Source from the content-addressed store, hash-verified

43 self.assertEqual(part.get_payload(), payload)
44
45 def _delete_recursively(self, target):
46 # Delete a file or delete a directory recursively
47 if os.path.isdir(target):
48 os_helper.rmtree(target)
49 elif os.path.exists(target):
50 os_helper.unlink(target)
51
52
53class 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