March 2003
Intermediate to advanced
656 pages
39h 30m
English
rmtree
rmtree(path,ignore_errors=False,onerror=None)
Removes the directory tree rooted at path.
When ignore_errors is true,
rmtree ignores errors. When
ignore_errors is false and
onerror is None, any
error raises an exception. When onerror is
not None, it must be callable with parameters
func, path, and
excp. func is
the function raising an exception (os.remove or
os.rmdir), path the
path passed to func, and
excp the tuple of information that
sys.exc_info( ) returns. If
onerror raises any exception
x, rmtree terminates,
and exception x propagates.
Read now
Unlock full access