ssh2-streams
ssh2-streams copied to clipboard
file resume is currently not supported
Hi, I'm having this error sometimes: "File resume is currently not supported". I have a recursive function which use ssh.putFile while upload many files:
const bubble = (track, i) => {
let dir = sourceDirectoryName + '/' + newtrackname, resourcesDirectory + '/' + newtrackname;
ssh.putFile(dir, fastPut)
.then(function (success) {
if ((i+1) < length) {
i++;
setTimeout(() => bubble(result[i], i), 100);
}
});
}
bubble(track[0],0);
ssh.putFile()
is from some other module, not ssh2-streams
.
Context: The method OP is referring to uses fastPut
from ssh2-streams
under the hood. ref
No idea then, the error is probably coming directly from the server. You'll have to determine the cause and then put some kind of limit/check in place to work around it.