EndTransfer Event

Fired when a file completes downloading/uploading.

Syntax

ANSI (Cross Platform)
virtual int FireEndTransfer(SFTPEndTransferEventParams *e);
typedef struct {
int Direction;
const char *LocalFile;
const char *RemoteFile; int reserved; } SFTPEndTransferEventParams; Unicode (Windows) virtual INT FireEndTransfer(SFTPEndTransferEventParams *e);
typedef struct {
INT Direction;
LPCWSTR LocalFile;
LPCWSTR RemoteFile; INT reserved; } SFTPEndTransferEventParams;
- (void)onEndTransfer:(int)direction :(NSString*)localFile :(NSString*)remoteFile;
#define EID_SFTP_ENDTRANSFER 5

virtual INT IPWORKSSFTP_CALL FireEndTransfer(INT &iDirection, LPSTR &lpszLocalFile, LPSTR &lpszRemoteFile);

Remarks

The EndTransfer event fires when either an upload or a download operation completes. This is when the file finishes transferring and/or a directory listing is finished.

The Direction parameter shows whether the client (0) or the server (1) is sending the data.

LocalFile identifies the local file. RemoteFile is the remote file.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SFTP 2020 C++ Edition - Version 20.0 [Build 8162]