FtpClient.ChangeDirectory Method
Change the current working directory on the remote server.
[Visual Basic]
Public Function ChangeDirectory( _
ByVal pathName As String _
) As Boolean
[C#]
public bool ChangeDirectory(
string pathName
);
Parameters
- pathName
- A string which specifies the directory on the remote server.
The file pathing and name conventions must be that of the remote
host.
Return Value
This method returns a boolean value. If the method succeeds, the
return value is true. If the method fails, the
return value is false. To get extended error
information, check the value of the LastError
property.
See Also
FtpClient Class |
SocketTools Namespace