:RemoveDirectory()
Class
Syntax
:RemoveDirectory(cDirectory, [hSession] ) -> lSuccess
Parameters
|
|
cDirectory |
String. Remote directory to remove. |
|
|
hSession |
Optional: If hSession is not passed, the value in :Session will be used |
Return
Logical indicating Success.
Returns .T. if the operation succeeds, otherwise returns .F.
To get further error information see :nErr and :cErr
To see the remote server's response, see :GetResultCode() and :GetResultString().
Description
The :RemoveDirectory() method removes the specified directory on the remote server.
This method uses the RMD command to create the directory. The user must have the appropriate permission to remove the specified directory. Most servers will not permit you to remove a directory if it contains one or more files.
See Also
:ChangeDirectory(), :CreateDirectory(), :GetDirectory()