common_files Files in both a and b.
tempfile.TemporaryDirectory(suffix=None, prefix=None, dir=None) This function securely creates a temporary directory using the
PurePath.is_absolute() Return whether the path is absolute or not. A path is considered absolute if it has both a root and (if
stat.S_ISPORT(mode) Return non-zero if the mode is from an event port.
PurePath.parts A tuple giving access to the path’s various components:
os.path.join(path, *paths) Join one or more path components intelligently. The return value is the concatenation of path
exception shutil.Error This exception collects exceptions that are raised during a multi-file operation. For copytree()
fileinput.input(files=None, inplace=False, backup='', bufsize=0, mode='r', openhook=None) Create an instance of the FileInput
PurePath.suffixes A list of the path’s file extensions:
os.path.splitext(path) Split the pathname path into a pair (root, ext) such that root + ext == path
Page 4 of 19