Lines Matching refs:PurePath
99 .. class:: PurePath(*pathsegments)
104 >>> PurePath('setup.py') # Running on a Unix machine
111 >>> PurePath('foo', 'some/path', 'bar')
113 >>> PurePath(Path('foo'), Path('bar'))
118 >>> PurePath()
124 >>> PurePath('/etc', '/usr', 'lib64')
139 >>> PurePath('foo//bar')
141 >>> PurePath('foo/./bar')
143 >>> PurePath('foo/../bar')
158 A subclass of :class:`PurePath`, this path flavour represents non-Windows
164 *pathsegments* is specified similarly to :class:`PurePath`.
168 A subclass of :class:`PurePath`, this path flavour represents Windows
174 *pathsegments* is specified similarly to :class:`PurePath`.
211 >>> p = PurePath('/etc')
216 >>> q = PurePath('bin')
224 >>> p = PurePath('/etc')
232 >>> p = PurePath('/etc')
256 .. data:: PurePath.parts
260 >>> p = PurePath('/usr/bin/python3')
280 .. data:: PurePath.drive
296 .. data:: PurePath.root
312 .. data:: PurePath.anchor
326 .. data:: PurePath.parents
340 .. data:: PurePath.parent
369 .. data:: PurePath.name
385 .. data:: PurePath.suffix
397 .. data:: PurePath.suffixes
409 .. data:: PurePath.stem
421 .. method:: PurePath.as_posix()
432 .. method:: PurePath.as_uri()
445 .. method:: PurePath.is_absolute()
465 .. method:: PurePath.is_reserved()
480 .. method:: PurePath.joinpath(*other)
495 .. method:: PurePath.match(pattern)
503 >>> PurePath('a/b.py').match('*.py')
505 >>> PurePath('/a/b/c.py').match('b/*.py')
507 >>> PurePath('/a/b/c.py').match('a/*.py')
513 >>> PurePath('/a.py').match('/*.py')
515 >>> PurePath('a/b.py').match('/*.py')
524 .. method:: PurePath.relative_to(*other)
542 .. method:: PurePath.with_name(name)
559 .. method:: PurePath.with_suffix(suffix)
588 A subclass of :class:`PurePath`, this class represents concrete paths of
595 *pathsegments* is specified similarly to :class:`PurePath`.
605 *pathsegments* is specified similarly to :class:`PurePath`.
615 *pathsegments* is specified similarly to :class:`PurePath`.
1080 :class:`PurePath`/:class:`Path` equivalent.
1084 Although :func:`os.path.relpath` and :meth:`PurePath.relative_to` have some
1108 :func:`os.path.isabs` :meth:`PurePath.is_absolute`
1109 :func:`os.path.join` :func:`PurePath.joinpath`
1110 :func:`os.path.basename` :data:`PurePath.name`
1111 :func:`os.path.dirname` :data:`PurePath.parent`
1113 :func:`os.path.splitext` :data:`PurePath.suffix`