wodFtpDLX ActiveX Control - Type Property
      
 

Description

Holds item type.


Property type

A DirItemTypes enumeration.  


Syntax

object.Type [= value]



The Type Property syntax has these parts:

Part Description
object An expression evaluating to an object of type DirItem.
value A DirItemTypes enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 typeDirectory 0 Item is directory.
 typeSymlink 1 Item is symbolic link.
 typeFile 2 Item is file.
 typeTemporary 3 Item is temporary file/folder.
 typeUnknown 4 Unknown item.

Remarks

This property will return type of the item, as defined by the server. Typically, it will be either a Directory or a file. However, UNIX OS does support others too, such as Symbolic Links, temporary files, etc...

Note that wodFtpDLX cannot determine if symbolic links points to some folder, or to file, therefore it will be marked with separate icon. If user clicks on it, you should decide whether you will try to open it or not.

Just a reminder - you must call ListDir to get directory listing, and then access files through Ftp.DirItems property in order for this property to be available!