Skip to content

Instantly share code, notes, and snippets.

View gabrielgbs97's full-sized avatar
🎯
Focusing

Gabriel Barceló Soteras gabrielgbs97

🎯
Focusing
View GitHub Profile
@gabrielgbs97
gabrielgbs97 / duplicates.py
Last active May 10, 2020 17:35 — forked from tfeldmann/duplicates.py
Fast and recursive duplicate file finder written in python3. It finds duplicated files in a whole directory tree. It is not memory aware, if there are A LOT (tested successfully with thousands) of files it .may be shut down by OOM killer
#!/usr/bin/env python
"""
Fast duplicate file finder.
Usage: duplicates.py <folder> [<folder>...]
Based on https://stackoverflow.com/a/36113168/300783
Modified for Python3 with some small code improvements.
"""
import os
import sys