Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnMakeDirectoryRequest

TElFTPSServer     See also     


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


This event is fired when a client requests to make a directory.

Declaration

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

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

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

[C++]
    void get_OnMakeDirectoryRequest(TSBFTPSServerDirectoryRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnMakeDirectoryRequest(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_OnMakeDirectoryRequest()
    void set_OnMakeDirectoryRequest(TSBFTPSServerDirectoryRequestEvent|callable|NULL $Value)
    callable TSBFTPSServerDirectoryRequestEvent(TObject $Sender, string &$Directory, integer &$ErrorCode)

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

Parameters

  • Directory - specifies the new directory name.
  • ErrorCode - return the filesystem error using this parameter.
  • pcDirectory - specifies the new directory name.
  • szDirectory - the length of pcDirectory.

Possible values:

Description

    This event is fired by TElFTPSServer when client attempts to make a new directory on the server. Use parameter ErrorCode to specify whether the request has succeeded.

See also:     OnRemoveDirectoryRequest     OnWorkingDirectoryRequest    

Discuss this help topic in SecureBlackbox Forum