Skip to content

Commit ccac65e

Browse files
committed
Remove link_to from PathPlus as it has additional dependencies
1 parent f80ac5f commit ccac65e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

domdf_python_tools/paths.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -682,18 +682,6 @@ def unlink(self, missing_ok: bool = False) -> None:
682682
if not missing_ok:
683683
raise
684684

685-
def link_to(self, target: Union[str, bytes, os.PathLike[str]]) -> None:
686-
"""
687-
Create a hard link pointing to a path named target.
688-
689-
:param target:
690-
691-
.. versionadded:: 0.3.8 for Python 3.8 and above
692-
.. versionadded:: 0.11.0 for Python 3.6 and Python 3.7
693-
"""
694-
695-
self._accessor.link_to(self, target) # type: ignore
696-
697685
if sys.version_info < (3, 9):
698686

699687
def __enter__(self):

tests/test_paths_stdlib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def test_rmdir(self):
242242
self.assertFileNotFound(p.stat)
243243
self.assertFileNotFound(p.unlink)
244244

245+
@min_version(3.9, "Requires Python 3.9 or higher")
245246
@unittest.skipUnless(hasattr(os, "link"), "os.link() is not present")
246247
def test_link_to(self):
247248
P = PathPlus(BASE)

0 commit comments

Comments
 (0)