Sharepoint - Get All Items in a Folder (including ALL subfolders)
I added the recursive scope to the query and had success:
SPQuery query = new SPQuery();
query.Folder = fldr;
//Recursive Scope....
query.ViewAttributes = "Scope=\"Recursive\"";
SPListItemCollection allitems = list.GetItems(query);
int filecount = allitems.Count;
Are there any better solutions?