filecmp — File and Directory Comparisons¶ Source code: Lib/filecmp.py The filecmp module defines functions to compare files and directories, with various optional time/correctness trade-offs. For comparing files, see also the difflib module. The filecmp module defines the following functions: filecmp.cmp(f1, f2, shallow=True)¶ Compare the files named f1 and f2, returning True if they seem equal, F