0
나는, 폴더 및 하위 폴더를 만들고 싶었 나는 this workaround 발견 을하지만 난 그들을 나열 할 때 :Azure API가/folder/folder/file이라는 BLOB를 나열하지 않는 이유는 무엇입니까?
foreach (IListBlobItem item in Container.ListBlobs(null, false))
{
if (item.GetType() == typeof(CloudBlockBlob))
{
CloudBlockBlob blob = (CloudBlockBlob)item;
Console.WriteLine("Block blob of length {0}: {1}", blob.Properties.Length, blob.Uri);
}
else if (item.GetType() == typeof(CloudPageBlob))
{
CloudPageBlob pageBlob = (CloudPageBlob)item;
Console.WriteLine("Page blob of length {0}: {1}", pageBlob.Properties.Length, pageBlob.Uri);
}
else if (item.GetType() == typeof(CloudBlobDirectory))
{
CloudBlobDirectory directory = (CloudBlobDirectory)item;
Console.WriteLine("Directory: {0}", directory.Uri);
}
}
그것은 단지 루트 컨테이너에서 상위 폴더와 모양을 보여줍니다이 코드 (source)를 사용. 이 가상 디렉터리가 진짜이기 때문에 내가 모양으로 그들 모두를 얻기 위해 기다리고 있었다, 예를 들어 나는하지만 표시되지 않습니다, 그냥 보여이 파일을
https://account.blob.core.windows.net/container/Accounts/Images/1/acc.jpg
있습니다
https://account.blob.core.windows.net/container/Accounts
및
https://account.blob.core.windows.net/container/anyfile
상위 폴더 내에서 하위 폴더에 파일을 요청해야합니까?