* scp: add flag to notify for uploading finished when uploaded an empty file * remove notifyOnEmptyFile Flag
@@ -579,6 +579,11 @@ namespace Renci.SshNet
read = source.Read(buffer, 0, buffer.Length);
}
+ if (totalLength == 0 && totalRead == 0)
+ {
+ RaiseUploadingEvent(remoteFileName, totalLength, totalRead);
+ }
+
SendSuccessConfirmation(channel);
CheckReturnCode(input);