File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1414using System ;
1515using System . ComponentModel ;
1616using System . Collections . Generic ;
17+ using System . Collections . ObjectModel ;
1718using System . Diagnostics . CodeAnalysis ;
1819using System . Globalization ;
1920using System . Linq ;
@@ -159,9 +160,12 @@ protected override void BeginProcessing()
159160 /// </summary>
160161 protected override void ProcessRecord ( )
161162 {
162- // throws Item Not Found Exception
163- path = this . SessionState . Path . GetResolvedPSPathFromPSPath ( path ) . First ( ) . ToString ( ) ;
164- ProcessPath ( path ) ;
163+ // throws Item Not Found Exception
164+ Collection < PathInfo > paths = this . SessionState . Path . GetResolvedPSPathFromPSPath ( path ) ;
165+ foreach ( PathInfo p in paths )
166+ {
167+ ProcessPath ( this . SessionState . Path . GetUnresolvedProviderPathFromPSPath ( p . Path ) ) ;
168+ }
165169 }
166170
167171 #endregion
You can’t perform that action at this time.
0 commit comments