MCPcopy Create free account
hub / github.com/ARMmbed/mbed-cli / remove

Function remove

test/util.py:64–69  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

62
63# Higher level functions
64def remove(path):
65 def remove_readonly(func, path, _):
66 os.chmod(path, stat.S_IWRITE)
67 func(path)
68
69 shutil.rmtree(path, onerror=remove_readonly)
70
71def move(src, dst):
72 shutil.move(src, dst)

Callers 2

test_sync_update_removeFunction · 0.70
mkgitFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_sync_update_removeFunction · 0.56