GithubHelp home page GithubHelp logo

directory-watcher's Introduction

Directory Watcher

Application surveillant un ou plusieurs dossiers, dans le but de rediriger les fichiers y arrivant dans d'autres dossiers, selon des règles de filtrage définie en configuration.

Exemple

Exemple de configuration :

- directory_path: "/data/Downloads"

  rules: 
  - destination_folder: "/data/Downloads/Images"
    ignore_hidden: yes
    extensions: 
    - "jpg"
    - "png"
    - "jpeg"
    
  - destination_folder: "/data/Documents/Admin/Banque"
    ignore_hidden: yes
    title_contains: "releve"
    extensions: 
    - "pdf"

Pour chaque nouveau fichier entrant dans le dossier /data/Downloads, les fichiers d'extension *.jpg, *.png, ou *.jpeg sont déplacés dans le dossier /data/Downloads/Images. De même, tous les fichiers *.pdf dont le nom contient releve sont déplacés dans /data/Documents/Admin/Banque.

Installation

  1. Cloner le dépot : git clone https://github.com/sonicolasj/directory-watcher.git
  2. Installer les dépendances : cd directory-watcher puis pip2 install -r requirements.txt
  3. Initialiser l'application : python2 setup.py
  4. Renseigner les fichiers directory-watcher/conf/directories.yaml et directory-watcher/conf/profiles.yaml en se basant sur la documentation présente dans les fichiers *.dist pour activer la surveillance.

directory-watcher's People

Contributors

sonicolasj avatar

Watchers

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