I want to implement the Cloud Files drive with streaming mode support. I guess this allows building a cloud drive with higher security - no data will be kept on the client-side on disk and all file content and folder content will be automatically deleted.
When creating a drive I set the StreamingAllowed flag:
storageInfo.HydrationPolicy = StorageProviderHydrationPolicy.Progressive;
storageInfo.HydrationPolicyModifier = StorageProviderHydrationPolicyModifier.StreamingAllowed | StorageProviderHydrationPolicyModifier.AutoDehydrationAllowed;
storageInfo.PopulationPolicy = StorageProviderPopulationPolicy.Full;
The description of the streaming mode says:
This modifier does not allow the platform to store any data on disk returned by a sync provider.
and also:
grants the platform the permission to not store any data returned by a sync provider on local disks.
My folders content is successfully listed and file content is properly hydrated when I open a file. The folder content is listed on every interaction with Windows Explorer, making a lot of folder listing requests, but I am ok with it as soon as it brings high security.
However, the content of the hydrated files stays on disk and is never deleted, even after machine reboot and when my app is not running and callbacks are not attached. The user can access it for example via a recent files list.
Should I somehow dehydrate files myself or the platform will delete files' content and listed folders automatically at some point?
@Rita Han - MSFT