Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnFileRemoveRequest

TElFTPSServer     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when a client requests to remove a file.

Declaration

[C#]
    event TSBFTPSServerFileRequestEvent OnFileRemoveRequest;
    delegate void TSBFTPSServerFileRequestEvent(Object Sender, string Path, ref int ErrorCode);

[VB.NET]
    Event OnFileRemoveRequest As TSBFTPSServerFileRequestEvent
    Delegate Sub TSBFTPSServerFileRequestEvent(ByVal Sender As Object, ByVal Path As String, ByRef ErrorCode As Integer)

[Pascal]
    property OnFileRemoveRequest : TSBFTPSServerFileRequestEvent;
    TSBFTPSServerFileRequestEvent = procedure (Sender: TObject; const Path : string; var ErrorCode : integer) of object;

[C++]
    void get_OnFileRemoveRequest(TSBFTPSServerFileRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnFileRemoveRequest(TSBFTPSServerFileRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerFileRequestEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, int32_t &ErrorCode);

[PHP]
    TSBFTPSServerFileRequestEvent|callable|NULL get_OnFileRemoveRequest()
    void set_OnFileRemoveRequest(TSBFTPSServerFileRequestEvent|callable|NULL $Value)
    callable TSBFTPSServerFileRequestEvent(TObject $Sender, string $Path, integer &$ErrorCode)

[Java]
    TSBFTPSServerFileRequestEvent getOnFileRemoveRequest();
    void setOnFileRemoveRequest(TSBFTPSServerFileRequestEvent Value);
    TSBFTPSServerFileRequestEvent.Callback OnFileRemoveRequest = new TSBFTPSServerFileRequestEvent.Callback() {
        public void TSBFTPSServerFileRequestEventCallback(TObject Sender, String Path, TSBInteger ErrorCode) {
            //...
        }
    }

Parameters

  • Path - path to the requested file.
  • ErrorCode - return the filesystem error using this parameter.
  • pcPath - path to the requested file.
  • szPath - the length of pcPath.

Possible values:

Description

    This event is fired by TElFTPSServer when client requests to remove a file on the server. Use parameter ErrorCode to specify whether the request has succeeded.

Discuss this help topic in SecureBlackbox Forum