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 nijel
Recipients nijel
Date 2020-10-12.12:54:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602507255.43.0.726203818853.issue42014@roundup.psfhosted.org>
In-reply-to
Content
The onerror callback is called with os.lstat when the actual failing function is os.open.

To reproduce create directory that can not be listed:

import os
import shutil

def onerror(func, path, exc_info):
    print(func)

os.mkdir("test")
os.chmod("test", 0)
shutil.rmtree("test", onerror=onerror)
History
Date User Action Args
2020-10-12 12:54:15nijelsetrecipients: + nijel
2020-10-12 12:54:15nijelsetmessageid: <1602507255.43.0.726203818853.issue42014@roundup.psfhosted.org>
2020-10-12 12:54:15nijellinkissue42014 messages
2020-10-12 12:54:15nijelcreate