Back to product page

SmartGet property


Determines if wodFtpDLX.NET should try to determine remote filename on GetFile command.

Type

Boolean

Syntax

  • C#
  • VB.NET
Boolean SmartGet {get; set; };

Property SmartGet As Boolean

Remarks

wodFtpDLX.NET tries to be smart when you call GetFile method. It tries to determine which filename are you trying to download, and where it should be put. It will query remote server if supplied RemotePath in GetFile call is a directory or a file, in order to determine what to download. This is a nice thing - it allows you specify whatever you wish in LocalPath and RemotePath arguments, but usually causes wodFtpDLX.NET to send one additional CWD before download file from the server. Some administrators and users prefer not to see that command in logs.

In such cases you can set SmartGet to False, in which case wodFtpDLX.NET will assume you have specified full path (including file names) in both LocalPath and RemotePath arguments in GetFile call. If you specify only folder(s), GetFile will fail.

Platforms

Windows