Skip to content

Add Duplicate File Finder mini-project#98

Open
zain-cs wants to merge 3 commits into
Grow-with-Open-Source:mainfrom
zain-cs:duplicate-file-finder
Open

Add Duplicate File Finder mini-project#98
zain-cs wants to merge 3 commits into
Grow-with-Open-Source:mainfrom
zain-cs:duplicate-file-finder

Conversation

@zain-cs

@zain-cs zain-cs commented Jul 16, 2026

Copy link
Copy Markdown

Summary

Adds a new mini-project: a CLI tool that finds duplicate files in a
directory based on content hashing (SHA-256), not just filename or size.

What it does

  • Recursively scans a directory
  • Groups files by size first (cheap pre-filter), then hashes remaining
    candidates to confirm true duplicates
  • Reports duplicate groups and estimated reclaimable disk space
  • Optional --delete flag to remove duplicates (with confirmation prompt)

Testing

Included a pytest suite covering:

  • Hash consistency
  • Detecting identical-content files
  • Ignoring unique files
  • Nested directory handling
  • Empty directory edge case

All 5 tests pass locally. No new dependencies — standard library only.

Checklist

  • Follows project style guidelines (single quotes, f-strings, 120-char lines)
  • Tests added and passing
  • README added
  • No unrelated files changed

@github-actions

Copy link
Copy Markdown

👋 @zain-cs
Thank you for raising your pull request.
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant