https://github.com/calcuis/duplicate-cleanser
PNG (or any file format) duplicate cleanser (just pull them all in the same directory)
https://github.com/calcuis/duplicate-cleanser
cleanser delete duplicate png
Last synced: 9 months ago
JSON representation
PNG (or any file format) duplicate cleanser (just pull them all in the same directory)
- Host: GitHub
- URL: https://github.com/calcuis/duplicate-cleanser
- Owner: calcuis
- Created: 2024-02-11T23:12:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T23:32:31.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T13:11:45.696Z (11 months ago)
- Topics: cleanser, delete, duplicate, png
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### deplicate file cleanser
This script first finds all PNG files (edit the code for any file type as you wish) in the current directory and its subdirectories, calculates their hashes, and stores them in a dictionary. If a hash already exists in the dictionary, it means there's a duplicate file. Finally, it deletes the duplicate files found.
#### execute the cleanser by:
```
python cleanser.py
```
Make sure to run this script in the directory where you want to detect and delete duplicate PNG files.