B
B
bumbay2015-01-03 15:49:09
Node.js
bumbay, 2015-01-03 15:49:09

Synchronization of two Node.JS folders?

It is necessary to synchronize two folders on the server using Node.JS
Let's say there is a folder avatars , which has subfolders and they have files (png avatars).
Task: when changing the avatars folder , copy the changes to the avatars_two folder .
Interested in the finished module. Nobody met?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2015-01-03
@bumbay

Maybe just make a symlink?
But if NodeJS is interested, then this is the fs.watch() method .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question