Skip to content

Commit 6bb3978

Browse files
scp: notify for uploading finished when uploaded an empty file (#1658)
* scp: add flag to notify for uploading finished when uploaded an empty file * remove notifyOnEmptyFile Flag
1 parent fd05d76 commit 6bb3978

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Renci.SshNet/ScpClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,11 @@ private void UploadFileContent(IChannelSession channel, Stream input, Stream sou
579579
read = source.Read(buffer, 0, buffer.Length);
580580
}
581581

582+
if (totalLength == 0 && totalRead == 0)
583+
{
584+
RaiseUploadingEvent(remoteFileName, totalLength, totalRead);
585+
}
586+
582587
SendSuccessConfirmation(channel);
583588
CheckReturnCode(input);
584589
}

0 commit comments

Comments
 (0)