Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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.
- Host: GitHub
- URL: https://github.com/LpCodes/Duplicate-Files-Remover
- Owner: LpCodes
- Created: 2023-03-17T10:02:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-17T15:19:35.000Z (about 1 year ago)
- Last Synced: 2024-05-30T02:53:54.792Z (6 months ago)
- Topics: duplicate-files, filemanagement, md5-hash, python, python-3, python-script, showcase
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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.