CloseFile Event
This event instructs the application to close an opened file.
Syntax
ANSI (Cross Platform) virtual int FireCloseFile(SFTPServerCloseFileEventParams *e);
typedef struct {
int64 ConnectionID;
const char *Handle;
int OperationStatus; int reserved; } SFTPServerCloseFileEventParams; Unicode (Windows) virtual INT FireCloseFile(SFTPServerCloseFileEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCWSTR Handle;
INT OperationStatus; INT reserved; } SFTPServerCloseFileEventParams;
- (void)onCloseFile:(long long)connectionID :(NSString*)handle :(int*)operationStatus;
#define EID_SFTPSERVER_CLOSEFILE 20 virtual INT SECUREBLACKBOX_CALL FireCloseFile(LONG64 &lConnectionID, LPSTR &lpszHandle, INT &iOperationStatus);
Remarks
This event is fired upon receipt of a close-file packet from a client. Servers implementing virtualized transfers must close the previously opened local file referenced by Handle in this event handler. No further operations are allowed with the closed file.
Set OperationStatus to one of the following values to report the result of this operation to the client:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |