Skip to content

🐩 A simple and effective script for everyday life.

Notifications You must be signed in to change notification settings

lucioerlan/Watch-Folders

Repository files navigation

PRETTIER LICENSE LinkedIn Hits


Watch and copy 🍭

Logo

Report Bug Β· Request Feature

πŸ€” About The Project

This is a very simple script, which I decided to do, to automate my manual work. Copy files from multiple folders to one, With it, you can watch the addition of new documents in multiple folders. You can define a specific format, or leave it free. In parallel, it performs a function, which deletes old files, to prevent the disk from becoming full.


πŸ”¨ Installation

You'll need Node.js installed on your computer in order to build this app.

git clone https://github.com/lucioerlan/watch-folders.git
$ cd watch-folders
$ npm install

πŸ”₯ Setup

Copy or rename the file

$ cp .env-examples .env 

Configure

  • Folder List = /src/config/setup.json

  • Files Received = .env


πŸš€ Running

$ npm start 

Or Run using with Pm2 πŸŒ†

$ pm2 start pm2.config.js

πŸ’Œ Thanks for these

| chokidar | A neat wrapper around Node.js fs.watch / fs.watchFile / FSEvents.!


πŸ”“ License

This project lives under MIT License. See LICENSE for more details. Β© - Erlan Lucio