Lines Matching refs:onerror
210 def rmtree(path, ignore_errors=False, onerror=None):
213 If ignore_errors is set, errors are ignored; otherwise, if onerror
218 is false and onerror is None, an exception is raised.
222 def onerror(*args):
224 elif onerror is None:
225 def onerror(*args):
232 onerror(os.path.islink, path, sys.exc_info())
233 # can't continue even if onerror hook returns
239 onerror(os.listdir, path, sys.exc_info())
247 rmtree(fullname, ignore_errors, onerror)
252 onerror(os.remove, fullname, sys.exc_info())
256 onerror(os.rmdir, path, sys.exc_info())