Exemplo n.º 1
0
        static IEnumerable <IAzureBlobFile> GetFilesRecursive(IAzureBlobFolder folder)
        {
            var items = folder.EnumItems();

            foreach (var it in items)
            {
                if (it is IAzureBlobFile)
                {
                    yield return((IAzureBlobFile)it);
                }

                if (it is IAzureBlobFolder)
                {
                    var childFolder     = (IAzureBlobFolder)it;
                    var recursive_items = GetFilesRecursive(childFolder);

                    foreach (var rec_it in recursive_items)
                    {
                        yield return(rec_it);
                    }
                }
            }
        }
Exemplo n.º 2
0
 public IEnumerable <IAzureBlob> EnumItems()
 {
     return(_currentFolder.EnumItems());
 }