Discuss this help topic in SecureBlackbox Forum


TElSFTPServer     See also     

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

This event is fired when your software has to create new directory.


    event TElSFTPServerCreateDirectoryEvent OnCreateDirectory;
    delegate void TElSFTPServerCreateDirectoryEvent(Object Sender, string Path, TElSftpFileAttributes Attributes, ref int ErrorCode, ref string Comment);

    Event OnCreateDirectory As TElSFTPServerCreateDirectoryEvent
    Delegate Sub TElSFTPServerCreateDirectoryEvent(ByVal Sender As Object, ByVal Path As String, ByVal Attributes As TElSftpFileAttributes, ByRef ErrorCode As Integer, ByRef Comment As String)

    property OnCreateDirectory: TSBSFTPServerCreateDirectoryEvent;
    TSBSFTPServerCreateDirectoryEvent = procedure(Sender : TObject; const Path : string; Attributes : TElSftpFileAttributes; var ErrorCode : integer; var Comment : string) of object;

    void get_OnCreateDirectory(TElSFTPServerCreateDirectoryEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCreateDirectory(TElSFTPServerCreateDirectoryEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerCreateDirectoryEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, TElSftpFileAttributesHandle Attributes, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

    TElSFTPServerCreateDirectoryEvent|callable|NULL get_OnCreateDirectory()
    void set_OnCreateDirectory(TElSFTPServerCreateDirectoryEvent|callable|NULL $Value)
    callable TElSFTPServerCreateDirectoryEvent(TObject $Sender, string $Path, TElSftpFileAttributes $Attributes, integer &$ErrorCode, string &$Comment)

    TElSFTPServerCreateDirectoryEvent getOnCreateDirectory();
    void setOnCreateDirectory(TElSFTPServerCreateDirectoryEvent Value);
    TElSFTPServerCreateDirectoryEvent.Callback OnCreateDirectory = new TElSFTPServerCreateDirectoryEvent.Callback() {
        public void TElSFTPServerCreateDirectoryEventCallback(TObject Sender, String Path, TElSftpFileAttributes Attributes, TSBInteger ErrorCode, TSBString Comment) {


  • Path - specifies the folder to create
  • Attributes - attributes of the directory
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcPath - specifies the folder to create
  • szPath - the length of pcPath.
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes


    This event is fired every time when new directory has to be created. The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

See also:     OnCreateSymLink     OnRemove    

Discuss this help topic in SecureBlackbox Forum