Catalyst File Transfer .NET

FileTransfer.ServerDirectory Property

Gets and sets a value which specifies the current working directory on the file server.

[Visual Basic]
Public Property ServerDirectory As String
[C#]
public string ServerDirectory {get; set;}

Property Value

A string value which specifies the current working directory on the file server. If there is no active connection to a server, or the File Transfer Protocol has not been used to establish a connection, this property will return an empty string.

Remarks

This property specifies the name of a directory on the file server. When a connection is first established to an FTP server, this property will return the current working directory. Setting this property is equivalent to using the ChangeDirectory method.

It is important to note that this property is only valid when connected to an FTP server. If you change the value of this property, and the current working directory cannot be changed on the server, an exception will be thrown which must be handled by the client application.

See Also

FileTransfer Class | SocketTools Namespace