I can get all contents inside a SharePoint list like this:
List list = oWebsite.Lists.GetByTitle("Documents");
ListItemCollection Items = list.GetItems(CamlQuery.CreateAllItemsQuery());
This works fine, But now I want to get all the contents of a folder (not list). How can I achieve this?
FolderCollection folCol = list.RootFolder.Folders;
var myFolder = folCol.FirstOrDefault(x => x.Name == "my folder name");
I want to find all the content (child folder, child files, child folders and files inside child folders too) inside myFolder
<View Scope=\"RecursiveAll\">
in CAML query as mentioned here