Back to Python Mini Projects

Duplicate Files Remover

projects/Duplicate files remover/README.md

latest615 B
Original Source

Duplicate Files Remover

This script removes duplicate files in the directory where the script runs.

Prerequisites

  • No external libraries are used
  • os
  • hashlib

How to run the script

Execute python3 duplicatefileremover.py

Screenshot/GIF showing the sample use of the script

<!--Remove the below lines and add yours -->

Working

The script first lists all the files in the directory. It takes MD5 hash of each file, when hash of 2 files become same it deletes the file.

Author Name

Anandha Krishnan Aji