after uploading one file I want determine if the operation was succesfull or not.
How I evaluate the OnSuccess - property?
I suspect I am the wrong track...

Code: Select all
procedure TForm1.ScSFTPClientOnSuccess(Sender: TObject; Operation: TScSFTPOperation;
const FileName: string; const Handle: TArray<System.Byte>;
const Message: string);
begin
//Operation.opWritingFile
//https://www.devart.com/sbridge/docs/index.html?tscsftpclient_onsuccess.htm
//??
end;
procedure TForm1.UploadFile;
begin
ScSFTPClient := TScSFTPClient.Create(nil);
ScSFTPClient.SSHClient := ScSSHClient;
ScSFTPClient.NonBlocking := True;
ScSFTPClient.Initialize;
ScSFTPClient.UploadFile('eula.1028.txt', 'eula.1028.txt', True);
ScSFTPClient.OnSuccess (...);
end;