File Listing Worker
File listing worker is one of the first ones we wrote and continues to be the simplest.
On working directory getting set the master just calls
- This goes ahead and uses
globto glob the whole directory.
- Sets up a watcher (using
chokidar) on this directory to detect any changes
Whenever anything changes it send
fileListingDelta to the master (which is also the web server process). That goes ahead and sends it to any connected clients (using our