Removes directory from the server.
[Visual Basic]
Overloads Public Sub RemoveDir( _
ByVal RemotePath As String _
) [C#]
public void RemoveDir(
string RemotePath
);[JScript]
public function RemoveDir(
RemotePath : String
);This method will remove directory on remote server, if possible. Once completed, Done event will be fired. If no error occurs, Args.Error argument in Done event will be set to null (Nothing in VB). If error occurred, Args.Error will contain description of the error.
If remote directory contains file or subdirectories - it's possible (and most common behavior) that you will be unable to remove it. This depends on implementation of this command on server side.
No wildcards can be used for RemotePath argument. RFC protocol specification for FTP or SFTP does not allow them.
Do not forget that RemotePath should always specify full absolute path (i.e. /home/joe/something) instead of relative path (i.e. joe/something).
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
FtpDLX Class | FtpDLX Members | Overload List
© WeOnlyDo Software. All Rights Reserved.