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 serhiy.storchaka
Recipients eric.araujo, hynek, ivan.radic, pitrou, r.david.murray, serhiy.storchaka, tarek
Date 2014-09-26.07:18:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411715919.87.0.156625509574.issue19642@psf.upfronthosting.co.za>
In-reply-to
Content
Rather like this:

    for n in os.listdir(dirpath):
        p = os.path.join(dirpath, n)
        if os.path.isdir(p):
            shutil.rmtree(p)
        else:
            os.unlink(p)
History
Date User Action Args
2014-09-26 07:18:39serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, tarek, eric.araujo, r.david.murray, hynek, ivan.radic
2014-09-26 07:18:39serhiy.storchakasetmessageid: <1411715919.87.0.156625509574.issue19642@psf.upfronthosting.co.za>
2014-09-26 07:18:39serhiy.storchakalinkissue19642 messages
2014-09-26 07:18:39serhiy.storchakacreate