MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / cleanup

Method cleanup

tools/python-3.11.9-amd64/Lib/tempfile.py:945–947  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

943 self.cleanup()
944
945 def cleanup(self):
946 if self._finalizer.detach() or _os.path.exists(self.name):
947 self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors)
948
949 __class_getitem__ = classmethod(_types.GenericAlias)

Callers 1

__exit__Method · 0.95

Calls 3

_rmtreeMethod · 0.95
detachMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected