Closed comccall closed 1 month ago
Sadly the library does not return that error for me to handle in the module. Seems WinSCP is able to receive the error code and raise it.
Bummer, but thank you for the reply 👍
@comccall Given this can't be fixed within Posh-SSH perhaps this can be closed?
When attempting to send a file to an SFTP server using Set-SFTPItem, the command will hang indefinitely if the user has exceeded the storage quota on the server.
In my example, the file will be partially uploaded to the destination and then stop, but instead of returning an error the command hangs until manually stopped. I'm not sure how to capture log output using Posh-SSH for an issue like this.
A similar problem occurs when using the WinSCP .NET assembly, which returns the following in the log: