PyDocs

Nav

File and Directory Access

TemporaryDirectory.cleanup

  • TemporaryDirectory.cleanup()
The directory can be explicitly cleaned up by calling the cleanup() method. If ignore_cleanup_errors is true, any unhandled exceptions during explicit or implicit cleanup (such as a PermissionError removing open files on Windows) will be ignored, and the remaining removable items deleted on a “best-effort” basis. Otherwise, errors will be raised in whatever context cleanup occurs (the cleanup() call, exiting the context manager, when the object is garbage-collected or during interpreter shutdown).
0 Examples
No examples for tempfile/TemporaryDirectory.cleanup.
See Also
No see-alsos for tempfile/TemporaryDirectory.cleanup
0 Notes
No notes for TemporaryDirectory.cleanup