MCPcopy
hub / github.com/electerm/electerm / writeRemoteFile

Function writeRemoteFile

src/app/server/ftp-file.js:19–28  ·  view source on GitHub ↗
(client, remotePath, str)

Source from the content-addressed store, hash-verified

17}
18
19async 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
30module.exports = {
31 readRemoteFile,

Callers 2

writeFileMethod · 0.70
writeFileMethod · 0.70

Calls 1

uploadFromMethod · 0.80

Tested by

no test coverage detected