Got bored in the first day of new semester and had to clean system for lot of copies of previous semester assignments and projects and notes, written this script to do the task for me
Project description
stress-relief
Got bored in the first day of new semester and had to clean system for lot of copies of previous sem assignments and projects and notes, written this script to do the task for me
Usage
python delete_copies.py <folder1> <folder2> <folder3> (and so on) <print/trash/delete>
You can enter as many folders as you can, but the script checks for just the mentioned folder and its child folders, it does not include parent folder
last arguments explanation:
print - just print the duplicate files
trash - deletes all the duplicate files in the folder and sends them to trash/recycle bin
delete - deletes the duplicate files permanently (cant be found in trash after this is executed, there is backup too in case this is just unfortunate command execution)
Note:
previous version code just checks for the name of the file instead of the actual content of the file which is what duplicate file means,
Executing the script did not caused any problem to me as I just copy the whole folder to another location instead of changing names of the files
And this error bounced back today while executing this on a folder with renaming the files which contains the same content inside
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for delete_copies-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfb9e1164b1b26d6996657f4ad13f5be3169285e726ed35b403d910641db309e |
|
MD5 | ad2e95e1236a7c62c4934ac8b36189c5 |
|
BLAKE2b-256 | f12c3a4c521c220e89edae4a5cd83a48a283df5c4ccd3f9787d3bc584bb0c31e |