I'm trying to rename an Azure File. To do this, we have to COPY then DELETE (because there is no Rename API).
Given this code, will the DELETE always kick off after the COPY has completed?
await destinationCloudFile.StartCopyAsync(sourceCloudFile);
await sourceCloudFile.DeleteAsync();
I'm confused because of the word Start
in StartCopyAsyc
... like .. it's going to start copying or something...
Also, I'm not doing a Task.WhenAll(both those tasks)
... which I would assume would be trying to do those at the same time.
Edit
This is a RENAME, so in effect, it will be copying the new file right next to the original file : same share, same container, same directory .. and of course, all in the same storage account.