Giter Site home page Giter Site logo

tur14cus / file-organizer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

This Python script organizes files in a specified directory by deleting duplicate files and categorizing them into subdirectories based on file extensions.

License: MIT License

Python 100.00%
automation file-organizer python

file-organizer's Introduction

File Organizer Script

This Python script organizes files in a specified directory by deleting duplicate files and categorizing them into subdirectories based on file extensions. It provides options for the user to input the directory path and monitors the directory for new files, ensuring proper organization.

Table of Contents

  1. Features
  2. How to Use
  3. Options
  4. User Input
  5. Requirements
  6. Notes
  7. License

Features

  1. Delete Duplicate Files: The script identifies and deletes duplicate files in the specified directory.

  2. Categorize Files: Files are categorized into subdirectories based on their file extensions. Categories include Images, PDFs, Datasets, and Videos.

  3. Monitor Directory: The script continuously monitors the specified directory for new files and organizes them accordingly.

How to Use

  1. Run the script by executing the Python file.

    python file_organizer.py
  2. Enter the path to the directory you want to organize when prompted.

  3. The script will delete duplicate files, categorize existing files, and continuously monitor the directory for new files.

Options

  • Delete Duplicate Files: The script checks for duplicate files and deletes them.

  • Categorize Files: Files are categorized into subdirectories based on predefined categories.

  • Monitor Directory: The script continually monitors the specified directory for new files.

User Input

  • Directory Path: Enter the path to the directory you want to organize.

Requirements

  • Python 3.x
  • External libraries: os, re, time

Notes

  • Ensure the specified directory exists and is not empty before running the script.

  • The script creates subdirectories for each file category if they do not already exist.

  • The script is designed to run continuously and classify new files in real-time.

License

This project is licensed under the MIT License.

file-organizer's People

Contributors

tur14cus 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.