MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / rmtree

Function rmtree

pre_commit/util.py:230–231  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

228 return _handle_readonly(func, path, excinfo[1])
229
230 def rmtree(path: str) -> None:
231 shutil.rmtree(path, ignore_errors=False, onerror=_handle_readonly_old)
232else: # pragma: >=3.12 cover
233 def rmtree(path: str) -> None:
234 """On windows, rmtree fails for readonly dirs."""

Callers 7

_hook_installFunction · 0.90
install_environmentFunction · 0.90
install_environmentFunction · 0.90
_gcFunction · 0.90
cleanFunction · 0.90
clean_path_on_failureFunction · 0.85

Calls

no outgoing calls

Tested by 1