Base class for manipulating paths without I/O.
PurePath represents a filesystem path and offers operations which don’t imply any actual filesystem I/O. Depending on your system, instantiating a PurePath will return either a PurePosixPath or a PureWindowsPath object. You can also instantiate either of these classes directly, regardless of your system.
Initialize self. See help(type(self)) for accurate signature.
Return the string representation of the path with forward (/) slashes.
Return the path as a ‘file’ URI.
True if the path is absolute (has both a root and, if applicable, a drive).
Return True if the path contains one of the special names reserved by the system, if any.
Combine this path with one or several arguments, and return a new path representing either a subpath (if all arguments are relative paths) or a totally different path (if one of the arguments is anchored).
Return True if this path matches the given pattern.
Return the relative path to another path identified by the passed arguments.
Return a new path with the file name changed.
Return a new path with the file suffix changed.
The concatenation of the drive and root, or ‘’.
The drive prefix (letter or UNC path), if any.
The final path component, if any.
The logical parent of the path.
A sequence of this path’s logical parents.
An object providing sequence-like access to the components in the filesystem path.
The root of the path, if any.
The final path component, minus its last suffix.
The final component’s last suffix, if any.
A list of the final component’s suffixes, if any.