NodeJS: How would one watch a large amount of files/folders on the server side for updates?

前端 未结 2 731
天命终不由人
天命终不由人 2020-12-13 17:08

I am working on a small NodeJS application that essentially serves as a browser based desktop search for a LAN based server that multiples users can query. The users on the

相关标签:
2条回答
  • 2020-12-13 17:22

    I recommend you to take a look at the Dropbox API.

    I implemented something similar with ruby on the client side and nodejs on the server side. The best approach is to keep hashes to check if the files or folders changed.

    0 讨论(0)
  • 2020-12-13 17:25

    Have a look at monit. I use it to monitor files for changes in my dev environment and restart my node processes when relevant project files change.

    0 讨论(0)
提交回复
热议问题