I need a functionality for listing blobs from azure such that if I specify date, the list should only contain blobs created after that date.
Currently I am using BlobDirectory.ListBlobs() function which returns all the blobs. It also has a overloaded function which takes BlobRequestOptions as parameter. I have tried setting the AccessCondition in the BlobRequestOptions to AccessCondition.IfModifiedSince(Date.UTC.Now) but somehow it gives me all the blobs stored in the container.
Any suggestion on what I can do differently to get particular subset of blobs
I wouldn’t think AccessCondition would apply to a listing of blobs, just an individual blob itself (though the documentation isn’t clear). A quick HTTP trace would confirm whether the associate HTTP header is sent for that call.
If indeed it does apply to the ListBlobs() call, the resource would be the blob container itself. Therefore, I’d expect it to return either all of the blobs or none of the blobs in the container, depending on whether the container itelf had been modified since the provided date.