Open smithmw opened 1 year ago
The sample does not implement syncing. It only shows how you can download content from the "server" (local folder representing the cloud) to the client. For that, you need to initiate the the app with some files on the server folder (and the documentation says that the client folder should be empty). Then all the placeholders are going to be created on the client folder at initialization time. After that, when you open some file it will be "downloaded" (copied from the server folder). You can also use the context menu integration to pin/unpin files. To implement syncing, you would have to modify DirectoryWatcher to also track new/modified files and copy them to the server. Similarly, your app would have to have some sort of connection to the server to be notified when a new file is added to the cloud so the placeholder can be created locally. You can find more information here https://learn.microsoft.com/en-us/windows/win32/cfapi/build-a-cloud-file-sync-engine#cloud-mirror-sample
The CloudMirror sample does not function as I would expect. Nothing syncs between the "cloud" and "local" folder.
See this demo video: https://www.screencast.com/t/ooSfxOIizzv
Any help in getting this working would be appreciated.
Note: I was able to get passed the building issues listed here: https://github.com/microsoft/Windows-classic-samples/issues/267