Back to product page

DirItems property


Returns collection of directory items.

Type

DirItemsCollection object

Syntax

  • C#
  • VB.NET
DirItemsCollection DirItems {get; };

ReadOnly Property DirItems As DirItemsCollection

Remarks

This property will return reference to collection of parsed directory items, giving you direct access to item names, sizes, permissions... By default, wodFtpDLX.NET will not try to interpret or parse received directory information - it will provide it as is. But, if you dislike parsing it yourself, you can access it using this property. First time you access it (for the same directory), wodFtpDLX.NET will internally parse it to collection of DirItem objects - one for each item in the directory list.

In order to access this property and return list of the directory, you must call ListDir method first - so wodFtpDLX.NET can retrieve directory listing from the server. Once ListDir is called, and Done is fired - you can access this property.

Different server types may provide different types of directory listings, therefore wodFtpDLX.NET may fail in parsing them. For this purpose, please make sure you set DirFormat property to proper server type.

Platforms

Windows