title: Get all items of a sharepoint list
body: <p>i want to download all files of my sharepoint list.
  I download the files with this method:</p>
  
  <pre><code>  public void DownloadFilesOfSpecialtys( )
         {
  
  
             using (var clientContext = new ClientContext(url))
             {
  
                 foreach (var item in ids)
                 {
  
                     int listItemId = int.Parse(item.ToString());
                     statics.files = int.Parse(ids.Count.ToString());
  
                     var list = clientContext.Web.Lists.GetByTitle(listtitle);
                     var listItem = list.GetItemById(listItemId);
                     clientContext.Load(list);
                     clientContext.Load(listItem, i =&gt; i.File);
                     clientContext.ExecuteQuery();
  
                     var fileRef = listItem.File.ServerRelativeUrl;
                     var fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(clientContext, fileRef);
                     var fileName = Path.Combine(@path , (string)listItem.File.Name);
  
  
  
                     using (var fileStream = System.IO.File.Create(fileName))
                     {
                         fileInfo.Stream.CopyTo(fileStream);
                     }
  
  
                 }
  
  
             }
  
         }
  </code></pre>
  
  <p>Now my Problem is, that the files in the sub folders arent downloaded with this methode.
  Is there an opportunityto go through all sub folders in my list and download all files?</p>