MCPcopy
hub / github.com/pytest-dev/pytest / chmod_rw

Function chmod_rw

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

Source from the content-addressed store, hash-verified

110 import stat
111
112 def chmod_rw(p: str) -> None:
113 mode = os.stat(p).st_mode
114 os.chmod(p, mode | stat.S_IRUSR | stat.S_IWUSR)
115
116 # For files, we need to recursively go upwards in the directories to
117 # ensure they all are also writable.

Callers 1

on_rm_rf_errorFunction · 0.85

Calls 2

statMethod · 0.80
chmodMethod · 0.80

Tested by

no test coverage detected