This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import filecmp | |
| import sys | |
| def compare_directories(dir1, dir2): | |
| """ | |
| Recursively compare two directories, checking actual file contents. | |
| """ | |
| differences = [] | |
| compared = filecmp.dircmp(dir1, dir2) |