shutil.ignore_patterns(*patterns) This factory function creates a function that can be used as a callable for copytree()‘s
same_files Files which are identical in both a and b, using the class’s file comparison operator.
tempfile.mkstemp(suffix=None, prefix=None, dir=None, text=False) Creates a temporary file in the most secure manner possible
os.path.relpath(path, start=os.curdir) Return a relative filepath to path either from the current directory or from
stat.S_IMODE(mode) Return the portion of the file’s mode that can be set by
os.path.commonpath(paths) Return the longest common sub-path of each pathname in the sequence paths. Raise ValueError
shutil.rmtree(path, ignore_errors=False, onerror=None) Delete an entire directory tree; path must point to a directory
Page 19 of 19