title: Unable to get the sum of largest files due to longer than 255 characters deep?
body: <p>How can I get the result of the below script when the directory path is longer than 255 characters the files are more than 3 million + approximately?</p>
  <pre><code> (Get-ChildItem N:\Shared Folder\Replicated Files -recurse | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb 
  </code></pre>
  <p>The error I'm getting:</p>
  <pre><code>Get-ChildItem : Could not find a part of the path 'N:\Shared Folder\Replicated Files...'.
  At line:1 char:3
  +  (Get-ChildItem N:\Shared Folder\Replicated Files -recurse | Sort-Object length -de ...
  +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ReadError: (N:\Shared Folder\Replicated Files) [Get-ChildItem], DirectoryNotFoundException
      + FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand
  </code></pre>