Skip to content

Instantly share code, notes, and snippets.

View R-Larocque's full-sized avatar

R. Larocque R-Larocque

  • Technologies Budgie
  • Québec, Canada
  • 04:14 (UTC -03:00)
View GitHub Profile
@R-Larocque
R-Larocque / duplicates.py
Last active February 8, 2026 21:11 — forked from tfeldmann/duplicates.py
Fast duplicate file finder written in Python (3)
#!/usr/bin/env python3
"""
Fast duplicate file finder.
Usage: duplicates.py <folder> [<folder>...] [--output <path>]
Based on https://stackoverflow.com/a/36113168/300783 and https://gist.github.com/tfeldmann/fc875e6630d11f2256e746f67a09c1ae
Modified for Python3 with some small code improvements.
"""
import argparse
import hashlib
import os