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

Function create

tests/conftest.py:298–302  ·  view source on GitHub ↗
(link: Path, target: Path)

Source from the content-addressed store, hash-verified

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

Callers 7

__call__Method · 0.85
_create_singletonMethod · 0.85
observe_createFunction · 0.85
reset_then_createFunction · 0.85
remove_before_createFunction · 0.85
refuse_pinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected