You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, you are correct. Methods provided in BlobURL and other XXURL classes are 1:1 mapping to Azure Storage all provided RESTful APIs. There is not "check blob existing" RESTful API provided, so not in the SDK.
The easy way is for a quick check is to call BlobURL.getProperties() and catch the error, if the statusCode is 404. So the blob doesn't exist.
BTW, in which scenario, do you need to check a blob existence?
Hi @XiaoningLiu :)
I'm developing a migration process. I'd rather not re-upload previously uploaded blobs, and this would save me some work. BlobURL.getProperties(Aborter.timeout(TIMEOUT)) seems to hang when nonexistent -- It should get rejected with the error, right?
There seems to be no mapping to check for the existence of block blobs.
The text was updated successfully, but these errors were encountered: