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

Function create_with_group_access

tests/sqlite/test_links.py:401–410  ·  view source on GitHub ↗
(
        *,
        prefix: str,
        dir: Path,  # ruff:ignore[builtin-argument-shadowing]  # matches mkdtemp
    )

Source from the content-addressed store, hash-verified

399 mkdtemp = tempfile.mkdtemp
400
401 def create_with_group_access(
402 *,
403 prefix: str,
404 dir: Path, # ruff:ignore[builtin-argument-shadowing] # matches mkdtemp
405 ) -> str:
406 # Stands in for an inheritable ACL entry that grants the group access to every new directory.
407 directory: Final[Path] = Path(mkdtemp(prefix=prefix, dir=dir))
408 directory.chmod(0o770)
409 directories.append(directory)
410 return str(directory)
411
412 mocker.patch("tempfile.mkdtemp", autospec=True, side_effect=create_with_group_access)
413 return directories

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected