Skip to content

Instantly share code, notes, and snippets.

Avatar

Soufiane Yakoubi soufyakoub

View GitHub Profile
@soufyakoub
soufyakoub / is_same_dirs.py
Created May 26, 2020
Compare two directories recursively
View is_same_dirs.py
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