:CreateDirectory()
Class
Syntax
:CreateDirectory( cDir, [hSession] ) -> lSuccess
Parameters
|
|
cDir |
String that specifies the name of the directory. The file pathing and name conventions must be that of the remote host. |
|
|
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 :CreateDirectory() method creates the specified directory on the remote server.
This method uses the MKD command to create the directory.
The user must have the appropriate permission to create the specified directory.
See Also
:ChangeDirectory(), :GetDirectory(), :RemoveDirectory()