]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarified description of error handling for shutil.rmtree().
authorFred Drake <fdrake@acm.org>
Tue, 18 Jun 2002 14:32:16 +0000 (14:32 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 18 Jun 2002 14:32:16 +0000 (14:32 +0000)
This closes SF patch #569832.

Doc/lib/libshutil.tex

index 8ff5367b2ad660c24f029678a1ae79a92551ef5e..ff0740502d76d902e0933d0626689788e61fbb01 100644 (file)
@@ -73,8 +73,9 @@ file type and creator codes will not be correct.
 \begin{funcdesc}{rmtree}{path\optional{, ignore_errors\optional{, onerror}}}
 \index{directory!deleting}
   Delete an entire directory tree.  If \var{ignore_errors} is true,
-  errors will be ignored; if false or omitted, errors are handled by
-  calling a handler specified by \var{onerror} or raise an exception.
+  errors resulting from failed removals will be ignored; if false or
+  omitted, such errors are handled by calling a handler specified by
+  \var{onerror} or, if that is omitted, they raise an exception.
 
   If \var{onerror} is provided, it must be a callable that accepts
   three parameters: \var{function}, \var{path}, and \var{excinfo}.