[英]Azure Storage Java SDK Check If Blob exist?
Using the new V10 SDK, is there a way to check if the blob exist before writing? 使用新的V10 SDK,有没有办法在写入之前检查blob是否存在? Or should I set an infinite lease on every file that are successfully uploaded?
还是应该为每个成功上传的文件设置无限租期?
https://github.com/Azure/azure-storage-java https://github.com/Azure/azure-storage-java
您可以使用exists()
方法检查Blob的存在: http : //azure.github.io/azure-storage-java/com/microsoft/azure/storage/blob/CloudBlob.html#exists()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.