I need to get the folder named
Arshad from SharePoint Document library folder.
The path of the sub folder is :
I need to access the folder using SharePoint Client object model.
When I try accessing, it shows me an error :
Couldn't find the path.
The following is my code:
var list = clientContext.Web.Lists.GetByTitle(MainFolderName) If the variable `MainFolderName = "Shared Documents";` then I can access that folder and even add a new folder inside the "Shared Documents" var SPfolder = list.RootFolder; clientContext.Load(SPfolder); clientContext.ExecuteQuery(); SPfolder = SPfolder.Folders.Add(FolderName);