Open snps9100 opened 6 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sumantmehtams.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sumantmehtams.
Is this something that will be addressed in a future release?
Library name
Azure.Storage.Files.DataLake
Please describe the feature.
var options = new DataLakeFileUploadOptions { Conditions = new DataLakeRequestConditions { IfNoneMatch = Azure.ETag.All } }; await fsClient.GetFileClient(blobPath).UploadAsync(File.OpenRead(filePath), options);
The above code will cause the azure api to return a http 409 status if the file already exists, and the library will throw an Azure.RequestFailedException with status 409. This works, but i dont like using exceptions for flow control ...
It would be nice to have an option to not throw that exception (maybe its there but i overlooked it?), and just be able to inspect the Azure.Response object.