daveallie / entangler

Two way file syncer using platform native notify
MIT License
8 stars 6 forks source link

Add `--force-polling` option to enable `listen`'s polling adapter #15

Closed joshuay03 closed 6 months ago

joshuay03 commented 6 months ago

Related:

We've identified an issue where docker volumes seem to be omitting an IN_ISDIR event when new empty directories are created and detected by inotify (utilised by rb-inotify in listen's linux adapter), essentially causing inotify to report new directories as new files. This eventually results in a crash when trying to read the directory as a file here.

Our temporary solution has been to force the use of the polling (generic) adapter via this fork until we can provide support for this option in entangler itself, which this PR does.

listen docs for reference: https://github.com/guard/listen

cc @ghiculescu @daveallie