Fix Remove-Item confirmation message to use provider path instead (#27123)

This commit is contained in:
scuzqy
2026-03-31 11:17:39 -07:00
committed by GitHub
parent 27c53eaf45
commit f3fcee88f1
@@ -2718,7 +2718,7 @@ namespace Microsoft.PowerShell.Commands
{
// Get the localized prompt string
string prompt = StringUtil.Format(NavigationResources.RemoveItemWithChildren, resolvedPath.Path);
string prompt = StringUtil.Format(NavigationResources.RemoveItemWithChildren, providerPath);
// Confirm the user wants to remove all children and the item even if
// they did not specify -recurse