mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Show file name in Invoke-WebRequest -OutFile -Verbose (#24041)
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
{
|
||||
string outFilePath = WebResponseHelper.GetOutFilePath(response, _qualifiedOutFile);
|
||||
|
||||
WriteVerbose(string.Create(System.Globalization.CultureInfo.InvariantCulture, $"File Name: {Path.GetFileName(_qualifiedOutFile)}"));
|
||||
WriteVerbose(string.Create(System.Globalization.CultureInfo.InvariantCulture, $"File Name: {Path.GetFileName(outFilePath)}"));
|
||||
|
||||
// ContentLength is always the partial length, while ContentRange is the full length
|
||||
// Without Request.Range set, ContentRange is null and partial length (ContentLength) equals to full length
|
||||
|
||||
Reference in New Issue
Block a user