title: Get Files and their directory in Powershell
body: <p>I am trying to filter my files based on certain criteria and return a list of all items (including their parent directories)</p>
  
  <p>Here is what I have for example</p>
  
  <pre><code>get-childitem ./ -Recurse -Filter "*&amp;*" | ? { $_.PSIsContainer } | Select-Object -Propety Name
  </code></pre>
  
  <p>This does return all of files I want in this format</p>
  
  <ul>
  <li>File 1.txt </li>
  <li>File 2.txt</li>
  <li>File 3.txt</li>
  </ul>
  
  <p>I was wondering if there would be a way to have them dislay like this:</p>
  
  <ul>
  <li>Folder 1/Folder 2/File1.txt</li>
  <li>Folder 3/File 2.txt</li>
  <li>Folder 3/Folder 4/File 3.txt</li>
  </ul>
  
  <p>The folders are in no particular order or layout, so I would just like to get the full path of the file.</p>