(client, remotePath, str)
| 17 | } |
| 18 | |
| 19 | async function writeRemoteFile (client, remotePath, str) { |
| 20 | const readable = new Readable({ |
| 21 | read () { |
| 22 | this.push(str) |
| 23 | this.push(null) |
| 24 | } |
| 25 | }) |
| 26 | |
| 27 | return client.uploadFrom(readable, remotePath) |
| 28 | } |
| 29 | |
| 30 | module.exports = { |
| 31 | readRemoteFile, |
no test coverage detected