Repository navigation
Conversation
At start the Linux folder watcher listed every folder below the sync root and registered an inotify watch for it, including folders on the exclude list. With large excluded folders, such as repositories kept next to synced files, this blocked the client for close to a minute, more so with virtual files where each listing goes through FUSE. Excluded folders are now neither walked nor watched. Changes to the excluded folder itself are still reported, and its content inherits its exclusion. A folder removed from the exclude list while the client runs is watched after the next start of the client and picked up by the full local discovery until then. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: v3DJG6GL <72495210+v3DJG6GL@users.noreply.github.com>
…anges A change on a folder reported every path below it. When the client wrote the pin state of an excluded folder, the attribute change listed its whole content, tens of thousands of paths for large excluded folders, and each of them went through the ignore check on the main thread. A change on an excluded folder now reports only the folder. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: v3DJG6GL <72495210+v3DJG6GL@users.noreply.github.com>
v3DJG6GL
requested review from
camilasan,
claucambra,
i2h3,
mgallien and
nilsding
as code owners
November 19, 2026 18:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves
Resolves #11371
Summary
findFoldersBelow) walks + watches every subfolder incl. excluded ones - on the UI thread and through FUSE.changeDetectedlists its whole content (appendSubPaths) → all~48'000 paths run through ignore- and lock-file checks on the UI thread.Change
Folderstill setsPinStateExcluded(76376aa, [Bug]: ignored files always show state 'sync pending' #5524/[Bug]: Nextcloud VFS on Windows always displays "syncing" icon for .lnk files #5594 keep working)Foldernow hands the exclude check to the watcher viasetFolderExcludedCheck(). Tests use the same mechanism, sinceFolder' check is turned off in test builds.Results (same machine, OpenVFS)
Tests
testExcludedFolderIsNotWatched,testCreatedExcludedFolderIsNotWatched,testChangeOnExcludedFolderDoesNotListItsContentFolderWatcherTest19/19,InotifyWatcherTest4/4,FolderWatcherChangeDetectionTest5/5 (1 skip),FolderTest3/3,FolderManTest10/10FolderWatcherTestis disabled on Windows upstream (a3083f8) → only build + other tests via CI [WINDOWS-CI IS PENDING]Lines changed
TODO
Checklist
AI (if applicable)
LLM Disclosure