Skip to content

FileOrganizer is a simple Python script designed to help you organize your cluttered files

Notifications You must be signed in to change notification settings

kunal232i/File-Organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File Organizer

Overview

The File Organizer is a Python script designed to organize files within a specified directory based on their file types. It helps maintain a structured and organized file system by categorizing files into folders according to their extensions.

Features

  • Organize Files Script: The organize_files.py script scans the specified directory, categorizes files based on their extensions, and moves them into corresponding folders. It also generates a mapping file (mapping.json) to track the changes.

  • Revert Organization Script: The revert_organize_files.py script uses the mapping file to revert the changes made by the organization script, restoring the original file structure.

How to Use

  1. Installation:

    • Clone the repository:

      git clone https://github.com/kunal232i/File-Organizer.git
    • Navigate to the project directory:

      cd File-Organizer
  2. Organize Files:

    python organize_files.py <directory_path>
    • Replace <directory_path> with the path of the directory you want to organize.
  3. Revert Organization:

    python revert_organize_files.py <directory_path>
    • Replace <directory_path> with the path of the directory you want to revert.

Example

Organizing files in the example_directory:

python organize_files.py example_directory

Reverting the organization in the example_directory:

python revert_organize_files.py example_directory

Note

  • The mapping of the file structure is stored in mapping.json.
  • If files are accidentally organized, the revert script can be used to restore the original structure.

GIF

organize_files_gif

About

FileOrganizer is a simple Python script designed to help you organize your cluttered files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages