You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But was given an error about the offset being out of bounds. Well, yes, it is a zero length file, so therefore data.length is zero. Seems to me it shouldn't throw an error but should just go about writing a 0 length file on the server. FWIW the file does get created.
In my script I'm testing for 0 length buffer and handling it this way
In my file synchronize tool (https://github.com/robogeek/node-ssh2sync) I had to work around a zero length file issue.
I'm doing
followed by
But was given an error about the offset being out of bounds. Well, yes, it is a zero length file, so therefore data.length is zero. Seems to me it shouldn't throw an error but should just go about writing a 0 length file on the server. FWIW the file does get created.
In my script I'm testing for 0 length buffer and handling it this way
The text was updated successfully, but these errors were encountered: