MCPcopy
hub / github.com/cookiecutter/cookiecutter / rmtree

Function rmtree

cookiecutter/utils.py:35–40  ·  view source on GitHub ↗

Remove a directory and all its contents. Like rm -rf on Unix. :param path: A directory path.

(path: Path | str)

Source from the content-addressed store, hash-verified

33
34
35def rmtree(path: Path | str) -> None:
36 """Remove a directory and all its contents. Like rm -rf on Unix.
37
38 :param path: A directory path.
39 """
40 shutil.rmtree(path, onerror=force_delete)
41
42
43def make_sure_path_exists(path: Path | str) -> None:

Callers 4

prompt_and_deleteFunction · 0.90
run_hook_from_repo_dirFunction · 0.90
generate_filesFunction · 0.90
cookiecutterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…