Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Enhance File Organizer with Watch Mode, Date-Based Sorting, and Duplicate Detection#3

Merged
praptisharma28 merged 2 commits intopraptisharma28:mainfrom
subhdotsol:main
Oct 26, 2025
Merged

Enhance File Organizer with Watch Mode, Date-Based Sorting, and Duplicate Detection#3
praptisharma28 merged 2 commits intopraptisharma28:mainfrom
subhdotsol:main

Conversation

@subhdotsol
Copy link
Contributor

This PR significantly improves the existing file organizer by introducing several key features and refactoring for better usability:

Feats added -

  1. Duplicate Detection: Computes SHA256 hashes of files to identify and move duplicates to a dedicated duplicates folder.

  2. Date-Based Sorting: Files are organized not only by type (images, videos, documents, etc.) but also by last modified date (e.g., images/2025-10-25).

  3. Watch Mode: Introduces a real-time file system watcher to automatically organize newly added files in the target folder.

4: CLI Integration (via clap):Allows users to specify target folder and enable watch mode with command-line arguments:
file_organizer --path ./Downloads --watch

Code Refactoring:
Modularized functions for readability (organize_files, move_to_folder, hash_file, watch_folder).
Improved error handling and logging for better user feedback.

subhdotsol and others added 2 commits October 25, 2025 18:02
Added a section to demonstrate the file structure after organization.
@praptisharma28 praptisharma28 merged commit dae0bdf into praptisharma28:main Oct 26, 2025
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.

2 participants