You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Give how there are duplicates of the cache folder in the tree the Find-PSDFile can return multiple matches. I am sure there are multiple ways to resolve this issue however I simply added Select-Object -First 1 to make sure only one match was returned. The line number I have is 130 however I have made changes to get UNC paths working so that might not match the original line number. The function referenced can be found in the PSDUtility.psm1 file.
I changed line from: $File = Get-ChildItem -Path $LocalPath -Recurse -Filter $FileName -File
I changed the line to: $File = Get-ChildItem -Path $LocalPath -Recurse -Filter $FileName -File | Select-Object -First 1
The text was updated successfully, but these errors were encountered:
Give how there are duplicates of the cache folder in the tree the Find-PSDFile can return multiple matches. I am sure there are multiple ways to resolve this issue however I simply added Select-Object -First 1 to make sure only one match was returned. The line number I have is 130 however I have made changes to get UNC paths working so that might not match the original line number. The function referenced can be found in the PSDUtility.psm1 file.
I changed line from: $File = Get-ChildItem -Path $LocalPath -Recurse -Filter $FileName -File
I changed the line to: $File = Get-ChildItem -Path $LocalPath -Recurse -Filter $FileName -File | Select-Object -First 1
The text was updated successfully, but these errors were encountered: