Skip to content

lg-labs/duplicate-files

Repository files navigation

🛠️ Duplicate Files Management

lg-labs License

👋 Duplicate files can be found, removed and ordered.

From LgLabs! Get Duplicate-Files to a files mng faster.

For more information, check this pages https://lufgarciaqu.medium.com.

⚠️ Be careful with some scripts, it'll remove or change files definitely. ⚠️

Using Duplicate Files Scripts, Python 3

Repository.

🚀 Run locally

Using makefile

Step 1/2: Find duplicates.

make find-duplicates

Step 2/2: Delete duplicates.

make delete-duplicates

🚀 Bonus: Order files by month or day

The files ordered on set by day and generate folders with the following format YYYY-MM or YYYY-MM-DD as a result.

make reorder-files

📚Contents

  1. 01_find_duplicates.py
  2. 02_delete_duplicates.py
  3. 03_reorder_files.py

📊 Metrics or Results

To scenario 1/3: Find duplicates.

Statistics:
Total files processed: 1677
Unique files: 1634
Duplicate files found: 43
Percentage of unique files: 97.44%
Percentage of duplicate files: 2.56%
Total space occupied by unique files: 352872.07 MB
Total space occupied by duplicates (could be freed): 15474.60 MB

To scenario 2/3: Delete duplicates.

Statistics:
Total duplicates deleted: 43
Total space freed: 15474.60 MB

To scenario 3/3: Delete duplicates.

Directory structure and file counts:
/local/path/2023-11-12: 1 files
/local/path/2023-11-23: 24 files
/local/path/2023-11-22: 19 files
/local/path/2023-11-21: 12 files
/local/path/2023-11-25: 77 files
/local/path/2023-11-20: 3 files

Summary:
Total files found: 136
Total files moved: 136

No invalid files found.

⚖️ License

The MIT License (MIT). Please see License for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published