Discuss this help topic in SecureBlackbox Forum

TElSftpClient.RemoveDirectory

TElSftpClient     See also     


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


Removes the directory on a server side.

Declaration

[C#/Java]
    bool RemoveDirectory(string Path);

[VB.NET]
    Function RemoveDirectory(ByVal Path As String) As Boolean

[Pascal]
    function RemoveDirectory(Path : string): Boolean;
    procedure RemoveDirectorySync(const Path: string);

[C++]
    bool RemoveDirectory(const std::string &Path);

[PHP]
    bool RemoveDirectory(string $Path)

Parameters

  • Path - path to directory to be removed

Return value

    True if operation was completed successfully;
    False otherwise.

Description

    Use this method to delete the directory specified by Path parameter. If the directory was successfully deleted, the OnSuccess event is fired. The OnError event is fired otherwise.

See also:     MakeDirectory     OpenDirectory    

Discuss this help topic in SecureBlackbox Forum