We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PurePath.[is_]relative_to()
1 parent 76433f8 commit f5cbed1Copy full SHA for f5cbed1
Doc/library/pathlib.rst
@@ -508,6 +508,8 @@ Pure paths provide the following methods and properties:
508
>>> p.is_relative_to('/usr')
509
False
510
511
+ If multiple arguments are supplied, they are joined together.
512
+
513
.. versionadded:: 3.9
514
515
@@ -589,6 +591,8 @@ Pure paths provide the following methods and properties:
589
591
.format(str(self), str(formatted)))
590
592
ValueError: '/etc/passwd' is not in the subpath of '/usr' OR one path is relative and the other absolute.
593
594
595
596
NOTE: This function is part of :class:`PurePath` and works with strings. It does not check or access the underlying file structure.
597
598
0 commit comments