• Home
  • Raw
  • Download

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')
276 from pathlib import PurePath, PurePosixPath, PureWindowsPath
280 .. data:: PurePath.drive
296 .. data:: PurePath.root
312 .. data:: PurePath.anchor
326 .. data:: PurePath.parents
342 .. data:: PurePath.parent
371 .. data:: PurePath.name
387 .. data:: PurePath.suffix
399 .. data:: PurePath.suffixes
411 .. data:: PurePath.stem
423 .. method:: PurePath.as_posix()
434 .. method:: PurePath.as_uri()
447 .. method:: PurePath.is_absolute()
467 .. method:: PurePath.is_relative_to(*other)
471 >>> p = PurePath('/etc/passwd')
480 .. method:: PurePath.is_reserved()
495 .. method:: PurePath.joinpath(*other)
510 .. method:: PurePath.match(pattern)
518 >>> PurePath('a/b.py').match('*.py')
520 >>> PurePath('/a/b/c.py').match('b/*.py')
522 >>> PurePath('/a/b/c.py').match('a/*.py')
528 >>> PurePath('/a.py').match('/*.py')
530 >>> PurePath('a/b.py').match('/*.py')
541 .. method:: PurePath.relative_to(*other)
558 …NOTE: This function is part of :class:`PurePath` and works with strings. It does not check or acce…
561 .. method:: PurePath.with_name(name)
578 .. method:: PurePath.with_stem(stem)
602 .. method:: PurePath.with_suffix(suffix)
631 A subclass of :class:`PurePath`, this class represents concrete paths of
638 *pathsegments* is specified similarly to :class:`PurePath`.
648 *pathsegments* is specified similarly to :class:`PurePath`.
658 *pathsegments* is specified similarly to :class:`PurePath`.
1236 :class:`PurePath`/:class:`Path` equivalent.
1243 :func:`os.path.relpath` and :meth:`PurePath.relative_to`.
1271 :func:`os.path.isabs` :meth:`PurePath.is_absolute`
1272 :func:`os.path.join` :func:`PurePath.joinpath`
1273 :func:`os.path.basename` :data:`PurePath.name`
1274 :func:`os.path.dirname` :data:`PurePath.parent`
1276 :func:`os.path.splitext` :data:`PurePath.suffix`