Added Path property which just wraps the file field in order to provide access to the folder's path
Added a ListBlobs() member which lists all the blobs contained in the folder. This method takes an (optional) bool parameter to flag if the caller wants all the blobs in the sub-folder hierarchy listed as well as those in the folder itself.
Along the way I moved some of the code from the ContainerBuilder module to a BlobBuilder module in order to make sure the existing functions to create the generated types could precede the new method.
I also added some more blobs to the test data in order to write some tests for the new functionality. i amended the expected values on the previous tests to reflect the new files.
I hope that all makes sense but, as always, just let me know if I need to rethink anything! :-)
Fixes #57
I think this provides the proposed functionality.
Changes:
Path
property which just wraps thefile
field in order to provide access to the folder's pathListBlobs()
member which lists all the blobs contained in the folder. This method takes an (optional) bool parameter to flag if the caller wants all the blobs in the sub-folder hierarchy listed as well as those in the folder itself.Along the way I moved some of the code from the
ContainerBuilder
module to aBlobBuilder
module in order to make sure the existing functions to create the generated types could precede the new method.I also added some more blobs to the test data in order to write some tests for the new functionality. i amended the expected values on the previous tests to reflect the new files.
I hope that all makes sense but, as always, just let me know if I need to rethink anything! :-)