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

Function create_junction

tests/conftest.py:296–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

294
295@pytest.fixture
296def create_junction() -> Callable[[Path, Path], None]: # pragma: win32 cover
297 # A junction needs no privilege, unlike a symlink, and lstat reports it as a directory.
298 def create(link: Path, target: Path) -> None:
299 if sys.platform == "win32": # pragma: no branch # narrows _winapi for the type checker
300 import _winapi
301
302 _winapi.CreateJunction(str(target), str(link))
303
304 return create
305
306
307@pytest.fixture

Calls

no outgoing calls

Tested by

no test coverage detected