Giter Site home page Giter Site logo

file-manager's Introduction

File/Folder Auto-sorter

Monitor any folder and sort your files and folders inside it automatically

Methodology

  1. Sort files based on extension as defined in the config.json
  2. Sort folders based on maximum type of extensions present in the folder

Usage

  1. Install python 3.X
  2. Create virtualenv:
    python -m venv env
  1. Activate the environment:
    • Linux:
        source env/bin/activate 
    • Windows:
        env\\Scripts\\activate
  2. Install requirements:
    pip install -r requirements.txt
  1. Defining config.json:
    • Structure
        {
            "include": {
                "extension-name": "path/to/folder/for/extension"
            },
            "ignore": ["extension-name"],
            "others": "path/to/misc/folder"
        }
    • Example
        {
            "include": {
                "exe": "C:\\Users\\Username\\Downloads\\Software"
            },
            "ignore": ["tmp", "crdownload"],
            "others": "C:\\Users\\Username\\Downloads\\MISC"
        }

    Note: Not having "others" in configuration will give you errors if that extension file is not defined in the config already. The folders defined for every extension will be created automatically. Configuration can be modified during runtime, it is loaded everytime a file is detected (can lead to performance issues for a large batch).

  2. Run the script:
    python monitor.py "path/to/folder/to/monitor"

file-manager's People

Contributors

aaditya420 avatar

Stargazers

Abdullah Tariq 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.