(directory: Path)
| 75 | |
| 76 | |
| 77 | def grant_everyone_write(directory: Path) -> None: # pragma: win32 cover |
| 78 | icacls = Path(os.environ["SYSTEMROOT"], "System32", "icacls.exe") |
| 79 | subprocess.run([icacls, directory, "/grant", "*S-1-1-0:(OI)(CI)(M)"], capture_output=True, check=True) |
| 80 | |
| 81 | |
| 82 | def run_fork_script(script: str, arguments: list[str], *, timeout: float) -> _ForkResult: |