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:
thegame4craft
2025-06-20 08:53:51 +02:00
committed by GitHub
parent fd05d76ad6
commit 6bb397872b
+5
View File
@@ -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);
}