PurePath.with_suffix(suffix) Return a new path with the suffix changed. If the original path doesn’t have a suffix
PurePath.name A string representing the final path component, excluding the drive and root, if any:
class pathlib.PurePath(*pathsegments) A generic class that represents the system’s path flavour (instantiating it creates either
shutil.move(src, dst, copy_function=copy2) Recursively move a file or directory (src) to another location (dst)
The modules described in this chapter deal with disk files and directories. For example, there are modules for reading the properties of files, manipulating paths in a portable
PurePath.suffix The file extension of the final component, if any:
stat.S_IFMT(mode) Return the portion of the file’s mode that describes the file type (used by the S_IS*() functions
shutil.unregister_archive_format(name) Remove the archive format name from the list of supported formats.
filecmp.DEFAULT_IGNORES New in version 3.4.
os.path.ismount(path) Return True if pathname path is a mount point: a point in a
Page 8 of 19