PowerShell SFTP upload – preserving uppercase filename
Hi,
In PowerShell I am having issues with the
So, if
when I run the following
When I check the remote server the filename has been changed to lowercase i.e.
Is there some session option to preserve the case of the file that I'm missing?
In PowerShell I am having issues with the
Send-WinSCPItem
not preserving the filename case of a file I'm uploading to a remote SFTP server. Not sure if it's my stupidity....?
So, if
$localfile
contains say D:\Test\MYFILE
when I run the following
Send-WinSCPItem -WinSCPSession $session -LocalPath $localfile -RemotePath $remotepath
myfile
instead of MYFILE
.
Is there some session option to preserve the case of the file that I'm missing?