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.
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
$ cp .env-examples .env
-
Folder List = /src/config/setup.json
-
Files Received = .env
$ npm start
$ pm2 start pm2.config.js
| chokidar
| A neat wrapper around Node.js fs.watch / fs.watchFile / FSEvents.!
This project lives under MIT License. See LICENSE for more details. © - Erlan Lucio