Message208662
Looks like that works. At least in my case - I just did
def del_rw(action, name, exc):
os.chmod(name, stat.S_IWRITE)
os.remove(name)
shutil.rmtree(path, onerror=del_rw)
Something more robust might check if name is a directory and os.rmdir that - I didn't need it for my case though.
Thanks. |
|
| Date |
User |
Action |
Args |
| 2014-01-21 16:13:26 | paul.moore | set | recipients:
+ paul.moore, tim.golden, r.david.murray, zach.ware, ivan.radic |
| 2014-01-21 16:13:26 | paul.moore | set | messageid: <[email protected]> |
| 2014-01-21 16:13:26 | paul.moore | link | issue19643 messages |
| 2014-01-21 16:13:26 | paul.moore | create | |
|