MCPcopy Create free account
hub / github.com/pytest-dev/pytest / chmod_rw

Function chmod_rw

src/_pytest/pathlib.py:98–100  ·  view source on GitHub ↗
(p: str)

Source from the content-addressed store, hash-verified

96 import stat
97
98 def chmod_rw(p: str) -> None:
99 mode = os.stat(p).st_mode
100 os.chmod(p, mode | stat.S_IRUSR | stat.S_IWUSR)
101
102 # For files, we need to recursively go upwards in the directories to
103 # ensure they all are also writable.

Callers 1

on_rm_rf_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected