|
Summary
Change to parent directory on server.
Syntax
Boolean ParentDir ()
Description
The ParentDir method changes your current working directory on the FTP server to its parent directory. This is the same as calling the ChangeDir("..") method or setting the Target property to
".." and setting the DirAction property to DIR_ACTION_CHANGE.
The ParentDir method takes no parameters and returns a boolean. If the current working directory can be successfully changed to its parent directory, 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_PARENT.
Example
Result = FTPClient.ParentDir () If Result = False Then MsgBox "Cannot change to parent directory", 64, "Sample Program" End If
|