How to use the ssh2.SFTP_STATUS_CODE.BAD_MESSAGE function in ssh2

To help you get started, we’ve selected a few ssh2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github silexlabs / unifile / test / unifile-sftp.js View on Github external
.catch((e) => {
								if(path === '/test/unknown') sftpStream.status(reqid, SFTP_STATUS_CODE.BAD_MESSAGE);
								else sftpStream.status(reqid, SFTP_STATUS_CODE.FAILURE);
							});
							return false;