コード例 #1
0
 private static void DownloadContainerBlobs(ContainerHelper containerHelper, string containerName, string localFolder)
 {
     if (containerHelper.ContainerExists(containerName))
     {
         var blobs = containerHelper.GetBlobs(containerName);
         foreach (var blob in blobs)
         {
             Console.WriteLine($"Downloading {blob.Name}");
             containerHelper.DownloadBlob(containerName, blob.Name, Path.Join(localFolder, blob.Name));
             Console.WriteLine($"{blob.Name} downloaded to {Path.Join(localFolder, blob.Name)}");
         }
     }
 }