mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 01:05:42 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user