Use wildcards in WASB ListBlobs

前端 未结 1 1393
盖世英雄少女心
盖世英雄少女心 2021-01-15 20:51

I\'m using Azure .Net SDK to list all blobs from Windows Azure Storage Blob container.

let client = account.CreateCloudBlobClient()
let container = client.Ge         


        
相关标签:
1条回答
  • 2021-01-15 21:23

    Unfortunately this won't work as Azure Storage does not allow you to do server-side wild card filtering. Only filtering option available to you server-side is prefix filtering.

    So what you would do is list blobs names of which starts with data/2014- and then apply rest of the filtering logic on the client side once you received all blobs names of which start with data/2014-.

    let list = container.ListBlobs("data/2014-", false) // ! here
    //Do client side filtering on the "list"
    
    0 讨论(0)
提交回复
热议问题