|
Summary
Create directory on server.
Syntax
| Boolean CreateDir (Target) |
Description
The CreateDir method creates a subdirectory on the FTP server with the specified target subdirectory name. This target subdirectory name cannot be the same as any existing subdirectory or
file name.
The CreateDir method takes a Target parameter and returns a boolean. If the target subdirectory can be successfully created, then the method returns True; otherwise, it returns False. The
application should ensure that the method was successfully executed by checking the return value. The method also sets the LastResult property. The value of the LastResult property can be checked to
determine if any error occurred.
Calling this method is equivalent to setting the DirAction property to DIR_ACTION_CREATE.
Example
Result = FTPClient.CreateDir ("test") If Result = False Then MsgBox "Cannot create the specified subdirectory", 64, "Sample Program" End If
|