-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FolderWatcher: fixes and improvements #2660
Conversation
91f4d97
to
cedd3d2
Compare
66d7aff
to
712bd92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a tiny nitpick, otherwise looks good to me.
So far so good running this PR on Mac OS, Windows and Linux. |
712bd92
to
e1e1954
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once you're happy with the testing feel free to merge
/rebase |
e1e1954
to
e3b36c6
Compare
e3b36c6
to
80d6edb
Compare
/rebase |
80d6edb
to
6146613
Compare
6146613
to
e72e987
Compare
/rebase |
If a folder was renamed A -> B, the folder watcher for the inode would be unaware and still report changes for A/foo. Now directory renames in the watched folders are tracked and paths are updated accordingly.
This makes sure that the conflict list can be updated if a user resolves a conflict by deleting the local conflict file. Previously one had to wait for the next sync run.
Previously it depended on addFolder() / removeFolder() calls to adjust watchers when new folders were added or removed. There also needed to be complex move handling. Now, any folder creation/move-in notifications automatically trigger watcher additions and folder deletion/move-out triggers removal.
Necessary for some filesystems on windows that don't have full file watching capabilities.
e72e987
to
08014b6
Compare
AppImage file: Nextcloud-PR-2660-08014b6dc3d150d017d61c83c5ebeca1656d946b-x86_64.AppImage |
Cherry-picked: