MCPcopy Create free account
hub / github.com/catboost/catboost / remove_tmp_dirs

Function remove_tmp_dirs

library/python/tmp/__init__.py:38–50  ·  view source on GitHub ↗
(env=None)

Source from the content-addressed store, hash-verified

36
37
38def remove_tmp_dirs(env=None):
39 if env is None:
40 env = os.environ
41
42 global _tmp_roots
43
44 for x in _tmp_roots:
45 logger.debug('Removing tmp dir %s', x)
46 shutil.rmtree(x, ignore_errors=True)
47
48 _tmp_roots = []
49
50 revert_tmp_dir(env)
51
52
53def revert_tmp_dir(env=None):

Callers

nothing calls this directly

Calls 2

revert_tmp_dirFunction · 0.85
debugMethod · 0.45

Tested by

no test coverage detected