I need to use C# to iterate over the publishing Pages library items on SharePoint 2010 and get their properties. For example, I need to get the item's filename (if it's a file) and detect if it's a folder and get its name. There could be folders within folders, so this might require recursion.
Your help is appreciated. Thanks :)