FileOperationResult Event
Signifies the completion of a file transfer operation.
Syntax
ANSI (Cross Platform) virtual int FireFileOperationResult(SFTPClientFileOperationResultEventParams *e);
typedef struct {
int Operation;
const char *RemotePath;
const char *LocalPath;
int ErrorCode;
const char *Comment;
int Cancel; int reserved; } SFTPClientFileOperationResultEventParams; Unicode (Windows) virtual INT FireFileOperationResult(SFTPClientFileOperationResultEventParams *e);
typedef struct {
INT Operation;
LPCWSTR RemotePath;
LPCWSTR LocalPath;
INT ErrorCode;
LPCWSTR Comment;
BOOL Cancel; INT reserved; } SFTPClientFileOperationResultEventParams;
- (void)onFileOperationResult:(int)operation :(NSString*)remotePath :(NSString*)localPath :(int)errorCode :(NSString*)comment :(int*)cancel;
#define EID_SFTPCLIENT_FILEOPERATIONRESULT 9 virtual INT SECUREBLACKBOX_CALL FireFileOperationResult(INT &iOperation, LPSTR &lpszRemotePath, LPSTR &lpszLocalPath, INT &iErrorCode, LPSTR &lpszComment, BOOL &bCancel);
Remarks
This event is fired each time the class completes a file transfer within a multi-file call. Operation defines the operation performed on the file, RemotePath specifies the name and path to the remote file, and LocalPath specifies the name and path to the local file.
ErrorCode and Comment return the code and textual description of the error, if it was encountered.
Set Cancel to True to cancel the multi-file operation.
Supported operations:
csfoDownloadFile | 0 | Download file |
csfoUploadFile | 1 | Upload file |
csfoDeleteFile | 2 | Delete file |
csfoMakeDir | 3 | Make directory |