(path: Path)
| 65 | |
| 66 | |
| 67 | def _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") |