title: Export CSV list with all specific files in directory - with their "path"
body: <p>I am currently running the following script:</p>
  
  <pre><code>Get-ChildItem $dir1 -recurse -include *ending.csv |
    Sort-Object fullname |
    Select $CurrentDate,Path,FullName,Name,CreationTime,Length,Chosen |
    Export-Csv -Delimiter ';' -Force -NoTypeInformation $dir2
  </code></pre>
  
  <p><code>$dir1</code> and <code>$dir2</code> are the source / destination paths. 
  Now the script just creates a CSV file that lists all files that have an ending according to what I specified along with some other parameters of the files.</p>
  
  <p>I'd also like to have a column that contains the "path without the file" for the file. So basically the <code>FullName</code> without <code>Name</code> of the file.</p>
  
  <p>Is there such a cmdlet / command?</p>