mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 09:43:57 +08:00
Show file name in Invoke-WebRequest -OutFile -Verbose (#24041)
This commit is contained in:
parent
c107c9c66b
commit
666fdb5d5a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user