MCPcopy Create free account
hub / github.com/tox-dev/filelock / grant_everyone_write

Function grant_everyone_write

tests/sqlite/process_support.py:77–79  ·  view source on GitHub ↗
(directory: Path)

Source from the content-addressed store, hash-verified

75
76
77def 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
82def run_fork_script(script: str, arguments: list[str], *, timeout: float) -> _ForkResult:

Callers 2

connect_routeFunction · 0.90

Calls 1

runMethod · 0.45

Tested by 2

connect_routeFunction · 0.72