I have a photo gallery library. I want to get all albums and their images. Now I get all albums (root level items) with something like this:
ClientContext ctx = new ClientContext(_url);
_mylib = web.Lists.GetByTitle("mylib");
_albums = _list.GetItems(new CamlQuery());
_albums represents albums, on the root of the gallery. How do I get files/items in each of these albums?
mylib
-album1
--image1.jpg
--image2.jpg
-album2
--image1.jpg
...