PurePath.as_uri() Represent the path as a file URI.
stat.S_ISSOCK(mode) Return non-zero if the mode is from a socket.
tempfile.TemporaryDirectory(suffix=None, prefix=None, dir=None) This function securely creates a temporary directory using the
tempfile.SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None) This
subdirs A dictionary mapping names in common_dirs to dircmp objects.
PurePath.parents An immutable sequence providing access to the logical ancestors of the path:
fileinput.hook_encoded(encoding) Returns a hook which opens each file with
stat.S_ISDIR(mode) Return non-zero if the mode is from a directory.
PurePath.is_absolute() Return whether the path is absolute or not. A path is considered absolute if it has both a root and (if
Path.rename(target) Rename this file or directory to the given target. On Unix, if target exists and is a
Page 3 of 19