Back to product page

DirFormat property


Determines expected directory format.

Type

DirFormats enumeration

Syntax

  • C#
  • VB.NET
DirFormats DirFormat {get; set; };

Property DirFormat As DirFormats

Remarks

When connecting to remote server, most probably you will need to obtain directory listing for the directory of your choice. If you can parse it by yourself, you may ignore this property. But - if you intent to use DirItems property and therefore access wodFtpDLX.NET's internally parsed information about the directory, you might need to adjust DirFormat property to type of the server you use.

Most typically, you will connect to UNIX servers, or servers that provide same directory listing type as UNIX servers, that typically looks like this:

drwxr-xr-x 1 root kreso 4096 Sep 17 07:28 somefile

Setting DirFormat to Auto or UNIX will make wodFtpDLX.NET parse above information correctly and provide appropriate information as new DirItem object for each such line in directory listing.

Also, DOS and WINDOWS servers may provide different type of listing, looking like this:

10-16-02 02:18PM 744256 number1s.txt

which wodFtpDLX.NET can handle with ease using Windows or Auto setting.

For other directory types (non-standard), you must parse information by yourself, or drop us email us at general@weonlydo.com to include such parsing in future versions.

Platforms

Windows