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:26paul.mooresetrecipients: + paul.moore, tim.golden, r.david.murray, zach.ware, ivan.radic
2014-01-21 16:13:26paul.mooresetmessageid: <1390320806.71.0.519218710769.issue19643@psf.upfronthosting.co.za>
2014-01-21 16:13:26paul.moorelinkissue19643 messages
2014-01-21 16:13:26paul.moorecreate