- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
Message208662
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | paul.moore |
|---|---|
| Recipients | ivan.radic, paul.moore, r.david.murray, tim.golden, zach.ware |
| Date | 2014-01-21.16:13:26 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1390320806.71.0.519218710769.issue19643@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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: <1390320806.71.0.519218710769.issue19643@psf.upfronthosting.co.za> |
| 2014-01-21 16:13:26 | paul.moore | link | issue19643 messages |
| 2014-01-21 16:13:26 | paul.moore | create | |

