Skip to content

Commit

Permalink
Fix azure blob list contents logic
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed May 21, 2021
1 parent 93ce594 commit d10b9d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public IEnumerable<FileDescriptor> ListContents(string path)
};
}

foreach (var entry in baseRef.ListBlobs().Where(b => b as CloudPageBlob != null)
foreach (var entry in baseRef.GetDirectoryReference(path).ListBlobs().Where(b => b as CloudPageBlob != null)
.OrderByDescending(f => ((CloudPageBlob)f).Properties.LastModified))
{
yield return new FileDescriptor
Expand Down

0 comments on commit d10b9d5

Please sign in to comment.