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 14
14
using System ;
15
15
using System . ComponentModel ;
16
16
using System . Collections . Generic ;
17
+ using System . Collections . ObjectModel ;
17
18
using System . Diagnostics . CodeAnalysis ;
18
19
using System . Globalization ;
19
20
using System . Linq ;
@@ -159,9 +160,12 @@ protected override void BeginProcessing()
159
160
/// </summary>
160
161
protected override void ProcessRecord ( )
161
162
{
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
+ }
165
169
}
166
170
167
171
#endregion
You can’t perform that action at this time.
0 commit comments