Skip to content

Instantly share code, notes, and snippets.

@pietrocolombo
pietrocolombo / delete_duplicate_file.py
Last active November 24, 2024 07:50 — forked from vinovator/checkDuplicates.py
Python script to merge or delete duplicate files from a folder
# delete_duplicate_file.py
# Python 3.8.6
"""
Given a folder, walk through all files within the folder and subfolders
and delete all file that are duplicates so you have only one copy of every file
The md5 checcksum for each file will determine the duplicates
"""
import os
@vinovator
vinovator / checkDuplicates.py
Last active April 11, 2025 11:48
Python script to find duplicate files from a folder
# checkDuplicates.py
# Python 2.7.6
"""
Given a folder, walk through all files within the folder and subfolders
and get list of all files that are duplicates
The md5 checcksum for each file will determine the duplicates
"""
import os