(p: str)
| 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. |