A
A
alex__882016-07-05 13:35:02
JavaScript
alex__88, 2016-07-05 13:35:02

How to create an event for the appearance of a file (picture) in a folder in node js?

Several virtual machines in each of them. An app.js file that saves the picture in a public place. And over time, this folder is filled with new files (pictures). And actually on the main machine, the app.js file that monitors this folder and says "Oops, we have a new file." Of course, I can create a function that will run after the nth amount of time, but perhaps there are other options?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question