shutil.rmtree

>>> help(shutil.rmtree)
Help on function rmtree in module shutil:

rmtree(path, ignore_errors=False, onerror=None)
    Recursively delete a directory tree.

    If ignore_errors is set, errors are ignored; otherwise, if onerror
    is set, it is called to handle the error with arguments (func,
    path, exc_info) where func is os.listdir, os.remove, or os.rmdir;
    path is the argument to that function that caused it to fail; and
    exc_info is a tuple returned by sys.exc_info().  If ignore_errors
    is false and onerror is None, an exception is raised.

posted on 2013-06-26 09:57  语辰  阅读(1228)  评论(0编辑  收藏  举报