Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnFileRenameRequest

TElFTPSServer     See also     


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


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

Declaration

[C#/Java]
    event TSBFTPSServerFileRenameRequestEvent OnFileRenameRequest;
    delegate void TSBFTPSServerFileRenameRequestEvent(Object Sender, string OldName, string NewName, ref int ErrorCode);

[VB.NET]
    Event OnFileRenameRequest As TSBFTPSServerFileRenameRequestEvent
    Delegate Sub TSBFTPSServerFileRenameRequestEvent(ByVal Sender As Object, ByVal OldName As String, ByVal NewName As String, ByRef ErrorCode As Integer)

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

[C++]
    void get_OnFileRenameRequest(TSBFTPSServerFileRenameRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnFileRenameRequest(TSBFTPSServerFileRenameRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerFileRenameRequestEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcOldName, int32_t szOldName, const char * pcNewName, int32_t szNewName, int32_t &ErrorCode);

[PHP]
    TSBFTPSServerFileRenameRequestEvent|callable|NULL get_OnFileRenameRequest()
    void set_OnFileRenameRequest(TSBFTPSServerFileRenameRequestEvent|callable|NULL $Value)
    callable TSBFTPSServerFileRenameRequestEvent(TObject $Sender, string $OldName, string $NewName, integer &$ErrorCode)

Parameters

  • Path - path to the requested file.
  • ErrorCode - return the filesystem error using this parameter.
  • pcOldName -
  • szOldName -
  • pcNewName -
  • szNewName -
  • OldName -
  • NewName -

Possible values:


Description

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

Discuss this help topic in SecureBlackbox Forum