Skip to content

feat: add configurable watcher polling settings#89

Open
vmar83 wants to merge 1 commit into
DamianB-BitFlipper:mainfrom
vmar83:feature/configurable-watcher-polling
Open

feat: add configurable watcher polling settings#89
vmar83 wants to merge 1 commit into
DamianB-BitFlipper:mainfrom
vmar83:feature/configurable-watcher-polling

Conversation

@vmar83

@vmar83 vmar83 commented Jan 20, 2026

Copy link
Copy Markdown

I'm running proton-drive-sync on linux with an external drive mounted via SSHFS, and I was getting "EMFILE: too many open files" errors when syncing large directories.
Turns out chokidar's use of Node.js fs.watch doesn't always work well on network filesystems.
Chokidar provides an alternative mode to use fs.watchFile when we set usePolling option on the watcher.

This PR adds two new config options under watcher:

  • use_polling: switches to polling mode (default: false)
  • polling_interval: how often to poll in ms (default: 5000)

I also added a "Watcher settings" option in the interactive config menu to easily configure this without editing the JSON manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant