Hi @alan henry ,
Thanks for reaching out.
1. Copying large directories with multi-GB placeholders
When File Explorer copies placeholder files, it may request hydration as part of normal file access. That said, the Cloud Files design generally expects the sync provider to own the hydration flow, rather than relying on File Explorer to manage large or long-running downloads. The guidance for building a cloud file sync engine highlights that providers should decide when and how content is brought local, particularly for larger files or more complex operations:
https://learn.microsoft.com/en-us/windows/win32/cfapi/build-a-cloud-file-sync-engine
Because of this, copy operations that rely only on implicit hydration can be less reliable when placeholders represent very large files.
2. Folder sync status UI remains "Sync Pending" after renaming a deep directory
Calling CfSetInSyncState does update the in-sync state of a placeholder from the platform’s point of view, which matches what you’re seeing when you query the state programmatically. The intended use of this API is described here:
https://learn.microsoft.com/en-us/windows/win32/api/cfapi/nf-cfapi-cfsetinsyncstate
However, setting the in-sync state doesn’t necessarily mean File Explorer will immediately refresh its visual indicators. Explorer updates its UI based on filesystem notifications and its own internal reconciliation, and there isn’t a documented API that explicitly forces a refresh of the sync icons. After larger structural changes - like renaming deep directory hierarchies - it’s possible for the UI to lag a bit and continue showing “Sync Pending,” even though the underlying placeholder state is already in sync.
In those cases, making sure all affected placeholders and their metadata are updated consistently, and giving Explorer time to process the changes, usually helps bring the UI back in line with the actual sync state.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.