Skip to content

Add: File Organizer - sort files into subfolders by type with undo#428

Open
Sridattasai18 wants to merge 2 commits intondleah:mainfrom
Sridattasai18:add-file-organizer
Open

Add: File Organizer - sort files into subfolders by type with undo#428
Sridattasai18 wants to merge 2 commits intondleah:mainfrom
Sridattasai18:add-file-organizer

Conversation

@Sridattasai18
Copy link
Copy Markdown

📁 File Organizer

Description

A command-line Python script that automatically organizes messy folders by sorting files into subfolders based on their type. Supports an undo feature to reverse the organization.

How it works

  • Scans a folder for files
  • Categorizes each file by extension (Images, Documents, Videos, Audio, Code, Archives, Executables, Others)
  • Moves files into the appropriate subfolder
  • Saves a log (.organizer_log.json) so you can undo with --undo
  • Handles duplicate filenames automatically

Usage

python file_organizer.py              # organize current folder
python file_organizer.py /some/path    # organize a specific folder
python file_organizer.py --undo        # undo last organize

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