Repository navigation
Conversation
Jac0b-Shi
requested review from
camilasan,
claucambra,
i2h3,
mgallien and
nilsding
as code owners
November 25, 2026 15:03
On-demand folder enumeration can expose ignored remote files as cloud placeholders. Users should get the same exclusion behavior whether the client discovers a file during sync or when they open a folder. Fixes nextcloud#11414. Signed-off-by: Jac0b-Shi <jac0b@jac0bshi.cn> Assisted-by: Codex:gpt-6.2-sol
Jac0b-Shi
force-pushed
the
pr/11414-cfapi-respect-exclusions
branch
from
November 25, 2026 15:14
a16d022 to
217ff35
Compare
8 of 12 tasks
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
Fixes #11414.
Related to #9524.
Summary
Windows on-demand enumeration now applies the sync folder's exclusion rules—including Windows-invalid and reserved filenames (as seen in #9524)—before handing entries to CFAPI, while readable ordinary entries continue to become placeholders.
The tray warning requested in #9524 remains outside the scope of this PR.
Verification
Verified on Windows against upstream master (
bad83ce9777529d133897c142e6974256572cdc0; unmodified baselineb981b3daad8ec5ef02ccce67c17b1259f05e9679, with only macOS File Provider changes in between):AccountTest::testAccount_listRemoteFolder): Exposed excluded entries in three rows before the fix and passed all rows afterward. The completeAccountTesttarget passed.SyncCfApiTest::testOnDemandFolderHonorsExclusions): Failed all five data rows (case variants ofdesktop.ini, default metadata exclusions, a custom rule, and an excluded directory) before the fix and passed all five after. Adjacent tests for avoiding implicit folder population and renaming online-only virtual directories also passed.13:37.md. With this PR, repeated enumeration succeeded with the invalid entry skipped, and valid sibling placeholders were still created. Also verified skipping filenames containing<and reserved device names such asCON.txt.nextcloudtarget built successfully. The repository's clang-tidy automatic fix command completed cleanly, and changed-line clang-tidy checks reported no diagnostics.Checklist
AI (if applicable)
OpenAI Codex (gpt-6.2-sol) assisted with investigation, implementation, tests and this pr description.