Back to product page

DirFormat property


Expected directory format.

Type

A DirFormats enumeration. Determines server's directory list format.

Syntax

  • Basic
object.DirFormat[= value]
The DirFormat(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.
valueA DirFormats enumeration, as described in settings.

Remarks

Settings

The settings for value are:

Constant Value Description
fmtAuto0 Automatically determines remote format.
fmtUNIX 1 Remote format is UNIX alike.
fmtWindows2 Remote format is Windows alike.
fmtVShell 3 Remote format is VShell2.1


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'es 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 fmtAuto or fmtUNIX will make wodFtpDLX 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 can handle with ease using fmtWindows or fmtAuto setting.

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

Platforms

Windows