Skip to content

Instantly share code, notes, and snippets.


Soufiane Yakoubi soufyakoub

View GitHub Profile
soufyakoub /
Created May 26, 2020
Compare two directories recursively
import filecmp
def is_same_dirs(*args, dircmp: filecmp.dircmp = None) -> bool:
Compare two directories recursively.
Files in each directory are assumed to be equal if their names and contents are equal.
:param dircmp: a filecmp.dircmp object that will be