Code Monkey home page Code Monkey logo

afo's Introduction

Automatic File Organizer

This is a Python script that can automatically organize files in a specified folder based on their file type. The script uses a dictionary to map each file type to its respective folder name and moves files to the corresponding folder.

Installation

To use the automatic file organizer script, you need to have Python 3 installed on your system. You can download Python from the official website here.

You also need to have the following Python modules installed:

  • os
  • shutil

You can install these modules using pip by running the following command in your terminal:

pip install os shutil

Usage

To use the automatic file organizer script, follow these steps:

  1. Clone the repository to your local machine using the following command:
git clone https://github.com/<username>/<repository-name>.git
  1. Navigate to the directory containing the script using the following command:
cd <repository-name>
  1. Edit the script to specify the folder path that you want to organize.
  2. Run the script using the following command:
python organizer.py
  1. The script will automatically organize the files in the specified folder based on their file type.

Customization

You can customize the automatic file organizer script to suit your needs by modifying the following:

  • File types: You can add or remove file types from the file_types dictionary in the move_file() function.
  • Folder names: You can modify the folder names in the file_types dictionary to match your preferred folder names.

Contributing:

If you find any issues with the automatic file organizer script or have suggestions for improvement, feel free to open an issue or create a pull request.

License:

This project is licensed under the MIT License - see the LICENSE file for details.

afo's People

Contributors

oussama-zbair 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.