Giter Site home page Giter Site logo

file-organizer's Introduction

File Organizer

This file organizer is a Python script that will organize files in a chosen directory based on their file extensions. It will scan the target directory, identify files with specifice extensions and move them to the corresponding folders based on the file type.

Features

Prompts user to select a directory to organize (No need to input path using text).
Loads file extension to folder name mappings from a JSON file.
Organize files in selected directory based on their extension.
Create destination folders if they don't already exist.
Move files to their respective folders.

Usage

  1. Ensure you have Python 3.x installed and required dependencies

  2. Prepare the JSON file with the file extension to folder name mappings with the following format:

{
    ".ext1:" "Folder1",
    ".ext2:" "Folder2",
    ".ext3:" "Folder3"
}
  1. Run the 'organize_files.py' script. You will be prompted to select a directory to organize.

  2. After selecting the directory, the script will load the extensions mappings from the JSON file and organize accordingly. Note: Make sure you have appropriate permissions as the script will move files into folders within the directory.

Customization

You can modify the extensions_map.JSON to add or remove entries. I have included some of the more common file types and some folders to put them in already.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the license terms.

file-organizer's People

Contributors

jwasl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.