copyFileDescriptorToPersonalStorage

abstract suspend fun copyFileDescriptorToPersonalStorage(    fileDescriptor: RainbowFileDescriptor,     hidePurpose: Boolean = false): RainbowResult<RainbowFileDescriptor>

As a viewer of the RainbowFileDescriptor, upload a copy in the user personal storage

A new RainbowFileDescriptor will be created with the user as owner. Note that it's only possible if the user is currently an active viewer and not the owner of the RainbowFileDescriptor. A copy of the file is put in the user's personal storage.

Return

RainbowResult<RainbowFileDescriptor> callback (onSuccess, onError)

Parameters

fileDescriptor

RainbowFileDescriptor the RainbowFileDescriptor to be copied to the personal storage space

hidePurpose

Boolean when true, hide the original purpose of the file