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

Function _hard_link

tests/sqlite/test_connection.py:67–70  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

65
66
67def _hard_link(path: Path) -> Path: # pragma: needs hard-link
68 alias = path.with_name("alias.db")
69 os.link(path, alias)
70 return alias
71
72
73_DESCRIPTOR_DIRECTORY: Final[Path] = Path("/proc/self/fd" if sys.platform == "linux" else "/dev/fd")

Callers

nothing calls this directly

Calls 1

linkMethod · 0.45

Tested by

no test coverage detected