•  
      reusable_code_components #495577
    Python, Data Cleaning, Regex

    A Python-based script that automatically organizes files in a folder by their extensions, creating a neat, structured directory layout.

    The Automated File Organizer is a Python script that scans a given folder—such as your Downloads directory—and organizes files into subfolders based on their extensions (e.g., .pdf, .jpg, .mp4). It classifies files into categories like Documents, Images, Videos, and Miscellaneous. The script creates folders if they don’t exist, moves files accordingly, and supports recursive organization within subfolders. Additional features include dry-run mode, logging, customizable extension mappings, and robust error handling, making file management seamless and efficient.

    Empty
    • Clone the repository:
      git clone https://openforge.gov.in/plugins/git/smartblocks/AutomatedFileOrganizer.git

    • Navigate to the directory:
      cd PythonCodes

    • Run the script:
      python script_name.py

    • Optional: Update the folder path and extension mappings in the script as needed.

    Automated File Organizer

    This Python script helps you organize files in a given directory by sorting them into subfolders based on their file extensions.

    Features

    • Automatically classifies files into categories like Documents, Images, Videos, etc.
    • Creates folders if they don't exist.
    • Handles nested directories (recursive mode).
    • Dry-run mode available to preview changes.
    • Logs actions and errors.

    Installation

    git clone https://openforge.gov.in/plugins/git/smartblocks/AutomatedFileOrganizer.git
    cd PythonCodes
    
    2025-06-02
    Active
    Sanjay Patel (sanjay_patel)
    #495577

    Follow-ups

    User avatar
    • Readme
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    • Git Repository Url
      -https://openforge.gov.in/plugins/git/smartblocks/AutomatedFileOrganizer.git 
      +https://openforge.gov.in/plugins/git/smartblocks/AutomatedFileOrganizer