Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/LpCodes/Duplicate-Files-Remover

This Python script removes duplicate files from a given directory. It prompts the user to select a folder and then uses the MD5 hashing algorithm to check if any files have the same hash value. If it finds duplicate files, it deletes all but one of them.
https://github.com/LpCodes/Duplicate-Files-Remover

duplicate-files filemanagement md5-hash python python-3 python-script showcase

Last synced: about 2 months ago
JSON representation

This Python script removes duplicate files from a given directory. It prompts the user to select a folder and then uses the MD5 hashing algorithm to check if any files have the same hash value. If it finds duplicate files, it deletes all but one of them.

Awesome Lists containing this project

README

        

# Duplicate File Remover

This Python script removes duplicate files from a given directory. It prompts the user to select a folder and then uses the MD5 hashing algorithm to check if any files have the same hash value. If it finds duplicate files, it deletes all but one of them.

## Requirements

Python 3.x
tkinter module
pathlib module

## Installation

Clone this repository or download the duplicate_file_remover.py file.
Install the required modules by running pip install tkinter pathlib in your terminal.

## How to Use

Open your terminal or command prompt and navigate to the directory where you saved duplicate_file_remover.py.
Run the script by entering python ```tkintergui.py```

A dialog box will appear asking you to select a folder. Choose the folder containing the files you want to remove duplicates from.
The script will then loop through all files in the folder, calculate their MD5 hash values, and keep track of unique files.
If it finds duplicate files, it will print a message to the console and delete all but one of the duplicates.