sshync icon indicating copy to clipboard operation
sshync copied to clipboard

fs.watch does not work on Ubuntu

Open 1a1a11a opened this issue 3 years ago • 2 comments

This is a great tool, but I just notice that it does not work on Ubuntu because fs.watch is not available. It would be nice to explicitly on the README.

1a1a11a avatar Sep 21 '21 20:09 1a1a11a

True, on linux the recursive option does not work (see https://nodejs.org/api/fs.html#fs_caveats). There are other ways to watch recursively, the most viable option is probably chokidar. I would accept a PR that replaces fs.watch.

mateogianolio avatar Sep 23 '21 08:09 mateogianolio

Thank you! I am not a node user, but sshync is easy to understand so I will try to create a PR soon.

1a1a11a avatar Sep 29 '21 13:09 1a1a11a