MCPcopy Create free account
hub / github.com/libgit2/pygit2 / force_rm_handle

Function force_rm_handle

test/utils.py:87–95  ·  view source on GitHub ↗
(
    # Callable[..., Any], str, , object
    remove_path: Callable[..., Any],
    path_str: str,
    excinfo: tuple[type[BaseException], BaseException, TracebackType],
)

Source from the content-addressed store, hash-verified

85
86
87def force_rm_handle(
88 # Callable[..., Any], str, , object
89 remove_path: Callable[..., Any],
90 path_str: str,
91 excinfo: tuple[type[BaseException], BaseException, TracebackType],
92) -> None:
93 path = Path(path_str)
94 path.chmod(path.stat().st_mode | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH)
95 remove_path(path)
96
97
98def rmtree(path: str | Path) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…