Skip to content

Instantly share code, notes, and snippets.

View Radiump123's full-sized avatar

Radiump123

View GitHub Profile
@Radiump123
Radiump123 / 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