title: How to use Test-Path in SharePoint
body: <p>Using the <code>Test-Path</code> PowerShell command we can check if the system drive path or file exists or not in local drive. Similarly how can we check if the SharePoint document library folder path or file in document library exists or not using <code>Test-Path</code> or any similar command?</p>
  
  <pre><code>Test-Path -Path "http://win-3:001/sites/Dev/Shared%20Documents/Test1"
  Test-Path -Path "http://win-3:001/sites/Dev/Shared%20Documents/Test1/sample.txt"
  </code></pre>