Azure / azure-storage-cpplite

Lite version of C++ Client Library for Microsoft Azure Storage
MIT License
25 stars 43 forks source link

How to copy blob to blob and get notification that it was done #99

Open Ale8andr opened 3 years ago

Ale8andr commented 3 years ago

Good day, I'm using the azure-stroage-cpplite library in my project and stuck with the copy blob problem. In the cpplite version, we have only start_copy function that doesn't wait until data will be copied. We don't have any option to place a callback that will be called when copy operation was done. The only way that I found is to call the get_property function until copy_status has pooling status. In the full cpp library, we have the wait_for_copy method that does it the same way. But maybe you could suggest a more elegant and quick way to check that blob was copied successfully without get_prop, sleep, and other additional calls?

Jinming-Hu commented 3 years ago

Hi @LeMaster-xx , there's no way other than keep getting properties and sleeping for a while, as far as I know.