Prerequisites
Summary
Added -Force parameter to Resolve-Path and Convert-Path cmdlets to support wildcard hidden files. This new parameter should be documented in help page.
Details
Example 1
HIdden files(in this case .git folder) are not shown without -Force. This is current behaviour.
> Resolve-Path -Path .git*
Path
----
C:\Users\armaa\Documents\git-repos\PowerShell\.github
C:\Users\armaa\Documents\git-repos\PowerShell\.gitattributes
C:\Users\armaa\Documents\git-repos\PowerShell\.gitignore
> Convert-Path -Path .git*
C:\Users\armaa\Documents\git-repos\PowerShell\.github
C:\Users\armaa\Documents\git-repos\PowerShell\.gitattributes
C:\Users\armaa\Documents\git-repos\PowerShell\.gitignore
Example 2
All HIdden files(in this case including .git folder) are shown with -Force. This is new behaviour.
> Resolve-Path -Path .git* -Force
Path
----
C:\Users\armaa\Documents\git-repos\PowerShell\.git
C:\Users\armaa\Documents\git-repos\PowerShell\.github
C:\Users\armaa\Documents\git-repos\PowerShell\.gitattributes
C:\Users\armaa\Documents\git-repos\PowerShell\.gitignore
> Convert-Path -Path .git* -Force
C:\Users\armaa\Documents\git-repos\PowerShell\.git
C:\Users\armaa\Documents\git-repos\PowerShell\.github
C:\Users\armaa\Documents\git-repos\PowerShell\.gitattributes
C:\Users\armaa\Documents\git-repos\PowerShell\.gitignore
Articles
- reference/7.4/Microsoft.PowerShell.Management/Resolve-Path.md
- reference/7.4/Microsoft.PowerShell.Management/Convert-Path.md
Related Source Pull Requests
Related Source Issues
Prerequisites
Get-Foocmdlet" instead of "New cmdlet."Summary
Added -Force parameter to
Resolve-PathandConvert-Pathcmdlets to support wildcard hidden files. This new parameter should be documented in help page.Details
Example 1
HIdden files(in this case
.gitfolder) are not shown without-Force. This is current behaviour.Example 2
All HIdden files(in this case including
.gitfolder) are shown with-Force. This is new behaviour.Articles
Related Source Pull Requests
-Forceparameter toResolve-PathandConvert-Pathcmdlets to support wildcard hidden files PowerShell/PowerShell#20981Related Source Issues
-Forceswitch toConvert-PathandResolve-Pathso as to also support hidden files. PowerShell/PowerShell#20929