(path)
| 62 | |
| 63 | # Higher level functions |
| 64 | def 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 | |
| 71 | def move(src, dst): |
| 72 | shutil.move(src, dst) |
no outgoing calls