https://nodejs.org/api/fs.html#fs_caveats claims that the fs.watch(filename[, options][, listener])recursive option is available only for OS X and Windows.
fs.watch(filename[, options][, listener])
So how can this be implemented on Linux?
Someone already implemented it as an npm module: node-watch
The author claims that it is much faster and more efficient in terms of memory.
Hope this helps if you haven't found a solution yet.
Source: https://habr.com/ru/post/1673579/More articles:ng-bootstrap ngbDropdown not working in angular 4 - angularjsPrevent cropping my image border - cssHow can I call ngOnChanges only after all input values have been set to ngOnInit - angularДобавление водяного знака в изображение с помощью codeigniter - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1673578/are-there-reasons-to-prefer-a-function-template-declaration-with-specializations-over-regular-function-overloading&usg=ALkJrhgqjVnhiAm-3ww3lqL8cJy9mWlp7AiOS 10.3: NSStrikethroughStyleAttributeName not showing - iosWhy is the copy constructor used here? - c ++How to implement a common linked list function in Rust? - genericshow to copy folders - FAKE F # MAKE - f #Simple Puzzle Algorithm - c #All Articles