Closed Szeraax closed 1 year ago
I fixed this, but im trying to work out a new build process, so if you want you can clone this repo, or just replace your "Receive-WinSCPItem.ps1" in the public folder with the updated one here. I'll try and get the build process fixed this week so I can get a new version published.
Issue Description
I cannot use a relative path in the LocalPath parameter when downloading a file. May affect sending as well, dunno.
Example
Receive-WinSCPItem -WinSCPSession $session -RemotePath $items[0].FullName -LocalPath .\
Expected Output
File info
Actual Output
Example
Receive-WinSCPItem -WinSCPSession $session -RemotePath $items[0].FullName -LocalPath .\foldername\ Receive-WinSCPItem -WinSCPSession $session -RemotePath $items[0].FullName -LocalPath ~ Receive-WinSCPItem -WinSCPSession $session -RemotePath $items[0].FullName -LocalPath .
WinSCP-PowerShell Version
Environment
Pwsh 7.3.3 on Server 2016