+9
Loading
Without a differential report (Nextcloud refuses it on the file tree), each
folder costs one PROPFIND Depth: 1. Sent one after another, an unchanged sync
of a real vault took 140 requests at ~140 ms, about 20 seconds.
- CollectionExplorer sends PROPFIND requests in bounded concurrent batches as
folders are discovered; responses are still processed one by one by the
caller, and an error cancels the requests in flight.
- RemoteListingCache keeps folder listings under the folder ETag. Nextcloud
changes a folder ETag whenever anything below it changes, so an unchanged
ETag replays the folder and all its descendants without a request. The cache
is bound to the server, account and remote folder, never stores folders
without an ETag, and expires to force a periodic full exploration.
- Only synchronization uses the cache; the integrity check and vault
resolution still ask the server for everything.
- macOS/iOS and Linux store the cache next to the sync state
(listing-cache.json), outside the vault and the scratch directory.
Tests: EnvorennCore 620 passed, 2 skipped.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>