(p: str)
| 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. |
no test coverage detected