ssh2-streams icon indicating copy to clipboard operation
ssh2-streams copied to clipboard

file resume is currently not supported

Open joneldiablo opened this issue 6 years ago • 3 comments

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);

joneldiablo avatar Feb 11 '19 19:02 joneldiablo

ssh.putFile() is from some other module, not ssh2-streams.

mscdex avatar Feb 11 '19 22:02 mscdex

Context: The method OP is referring to uses fastPut from ssh2-streams under the hood. ref

steelbrain avatar May 04 '20 03:05 steelbrain

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.

mscdex avatar May 04 '20 05:05 mscdex