title: Using c# how can I programmatically check if a folder exists on my reporting server
body: <p>I Have spent hours looking but without any success.</p>
  
  <p>I am programmatically creating snap shots of reports in SSRS using c# which creates report folders.  The reports are created in these folders but to prevent errors occurring I am deleting the whole folder structure and then re-creating the reports to prevent SSRS throwing an exception.</p>
  
  <p>I am using ReportingService2010.</p>
  
  <pre><code>ReportingService2010.DeleteItem(deleteFolderPath);
  </code></pre>
  
  <p>…</p>
  
  <pre><code>ReportingService2010.CreateFolder(folder, parentFolder, null);
  </code></pre>
  
  <p>-- This is the line where I need to check if the folder and report exist</p>
  
  <pre><code>var ret = CheckExist(linkedReportName, newParent);
  
  var param = GetReportParameters(existingReportPath);
  
  ReportingService2010.SetItemParameters(existingReportPath, param);
  </code></pre>
  
  <p>-- If I do not delete the folder structure the error will be thrown after this in a try/Catch </p>
  
  <pre><code>ReportingService2010.CreateLinkedItem(linkedReportName, newParent, existingReportPath, props);
  </code></pre>
  
  <p>I need to add a method to see if the report and report folder has already been created</p>