Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnWorkingDirectoryRequest

TElFTPSServer     See also     


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


This event is fired when a client requests working directory name.

Declaration

[C#]
    event TSBFTPSServerDirectoryRequestEvent OnWorkingDirectoryRequest;
    delegate void TSBFTPSServerDirectoryRequestEvent(Object Sender, ref string Directory, ref int ErrorCode);

[VB.NET]
    Event OnWorkingDirectoryRequest As TSBFTPSServerDirectoryRequestEvent
    Delegate Sub TSBFTPSServerDirectoryRequestEvent(ByVal Sender As Object, ByRef Directory As String, ByRef ErrorCode As Integer)

[Pascal]
    property OnWorkingDirectoryRequest : TSBFTPSServerDirectoryRequestEvent;
    TSBFTPSServerDirectoryRequestEvent = procedure (Sender: TObject; var Directory : string; var ErrorCode : integer) of object;

[C++]
    void get_OnWorkingDirectoryRequest(TSBFTPSServerDirectoryRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnWorkingDirectoryRequest(TSBFTPSServerDirectoryRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerDirectoryRequestEvent)(void * _ObjectData, TObjectHandle Sender, char * pcDirectory, int32_t &szDirectory, int32_t &ErrorCode);

[PHP]
    TSBFTPSServerDirectoryRequestEvent|callable|NULL get_OnWorkingDirectoryRequest()
    void set_OnWorkingDirectoryRequest(TSBFTPSServerDirectoryRequestEvent|callable|NULL $Value)
    callable TSBFTPSServerDirectoryRequestEvent(TObject $Sender, string &$Directory, integer &$ErrorCode)

[Java]
    TSBFTPSServerDirectoryRequestEvent getOnWorkingDirectoryRequest();
    void setOnWorkingDirectoryRequest(TSBFTPSServerDirectoryRequestEvent Value);
    TSBFTPSServerDirectoryRequestEvent.Callback OnWorkingDirectoryRequest = new TSBFTPSServerDirectoryRequestEvent.Callback() {
        public void TSBFTPSServerDirectoryRequestEventCallback(TObject Sender, TSBString Directory, TSBInteger ErrorCode) {
            //...
        }
    }

Parameters

  • Directory - specify working directory name via this parameter.
  • ErrorCode - return the filesystem error using this parameter.
  • pcDirectory - specify working directory name via this parameter.
  • szDirectory - the length of pcDirectory.

Possible values:

Description

    This event is fired by TElFTPSServer when working directory name has been requested by client. Assign the working directory name to Directory parameter. Use parameter ErrorCode to specify whether the request has succeeded.

See also:     OnChangeDirectoryRequest    

Discuss this help topic in SecureBlackbox Forum