(sftp: SFTPWrapper, path: string, data: string | Buffer)
| 404 | } |
| 405 | |
| 406 | function sftpAppendFile(sftp: SFTPWrapper, path: string, data: string | Buffer): Promise<void> { |
| 407 | return new Promise<void>((resolve, reject) => { |
| 408 | sftp.appendFile(path, data, (err) => { |
| 409 | if (err) { |
| 410 | reject(mapSftpError('appendFile', err)); |
| 411 | } else { |
| 412 | resolve(); |
| 413 | } |
| 414 | }); |
| 415 | }); |
| 416 | } |
| 417 | |
| 418 | function clientExec(client: Client, command: string): Promise<ClientChannel> { |
| 419 | return new Promise<ClientChannel>((resolve, reject) => { |
no test coverage detected