Back to product page

RemotePath property


Holds name of path on the server used for transferring files.

Type

String

Syntax

  • C#
  • VB.NET
String RemotePath {get; set; };

Property RemotePath As String

Remarks

This property specifies full path to a filename (or directory name) on remote server which will be used in a call to any of methods that require it. All the methods support setting RemotePath value as argument while calling the method, but you can also specify it here.

For example, PutFile method have two optional arguments: LocalFile and RemotePath. If you don't set RemotePath argument - you should specify it in this property prior to calling the method. If you specify it as the argument, wodFtpDLX.NET will overwrite RemotePath property with the value you entered as the argument.

Upon successful Connect, wodFtpDLX.NET will try to retrieve user's home path, and will initially store it to RemotePath property. So, accessing files/subfolders usually means you just have to append filenames/foldernames to this property.

Remember: RemotePath must contain absolute path at all times. You must use something like /home/joe/file.txt instead of relative joe/file.txt

Platforms

Windows