Discuss this help topic in SecureBlackbox Forum

TElSftpClient.MakeDirectory

TElSftpClient     See also     


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


Creates the new directory on a server side.

Declaration

[C#]
    bool MakeDirectory(string Path, TElSftpFileAttributes Attributes);

[VB.NET]
    Function MakeDirectory(ByVal Path As String, ByVal Attributes As TElSftpFileAttributes) As Boolean

[Pascal]
    function MakeDirectory(Path : string; Attributes : TElSftpFileAttributes): Boolean;
    
    procedure MakeDirectorySync(const Path: string; Attributes: TElSftpFileAttributes);

[C++]
    bool MakeDirectory(const std::string &Path, TElSftpFileAttributes &Attributes);
    bool MakeDirectory(const std::string &Path, TElSftpFileAttributes *Attributes);

[PHP]
    bool MakeDirectory(string $Path, TElSftpFileAttributes $Attributes)

[Java]
    boolean makeDirectory(String Path, TElSftpFileAttributes Attributes);

Parameters

  • Path - specifies the path to a newly created directory
  • Attributes - contains information about new directory attributes

Return value

    True if operation was completed successfully;
    False otherwise.

Description

    Use this method to create directories on a server side. If the directory was successfully created, the OnSuccess event is fired. The OnError event is fired otherwise.

See also:     CreateFile     OpenDirectory     ReadDirectory     RemoveDirectory    

Discuss this help topic in SecureBlackbox Forum